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:
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