Dag.exe

We already have some forum postings on the DAG.exe process, this article is intended to be a RAD replacement. Just the minimum code and discussion to get you up and coding.

So, at this point you have modified a Dynamics GP Form in modifier, now we need to get the Modified fields over to Visual Studio so we can code for them.

We use Dag.exe to do that

Related Articles

... and you 'll find more on the VS Tools Menu

Be sure that you have the VS Tools SDK installed. It's on the CD 

Go into the C:\Program Files (x86)\Microsoft Dynamics\GP20XX VS Tools SDK folder, copy Dag.exe into the main Dynamics directory

Create a text file in there, change the name to "dag 0 M.bat"

Open the new bat file, and add this text:

dag.exe 0 /M
pause

 

Run the bat file.

Create a new text file, rename it "dag 0 F.bat"

Open the new bat file, and add this text:

Del "Application.MicrosoftDynamicsGP.dll"
Dag.exe 0 /F /N:Dynamics
pause

The 'del' will delete the referenced file, but it won't find it the first time this is run. It'll be there the second time.

Set a reference to the modified forms dictionary in VS

Code to access the modified field:

GP2013:

MicrosoftDynamicsGpModified.Forms.PmVendorMaintenance.PmVendorMaintenance.LocalHoldbackPct.Value = 1

 

GP2015:

DynamicsModified.Forms.PmVendorMaintenance.PmVendorMaintenance.LocalHoldbackPct.Value = 1

 

 

https://msdn.microsoft.com/en-us/library/cc543572.aspx 


 
 

RealWorldCode gives developers practical, real‑world solutions with clean, working code — no fluff, no theory, just answers.
Links
Home
Knowledge Areas
Sitemap
Contact
Et cetera
Privacy Policy
Terms and Conditions
Cookie Preferences