VB Script Library within Integration Manager: Closing a Microsoft Dynamics GP Session

Work anywhere from any device with Microsoft 365

Upgrade to Microsoft 365 to work anywhere with the latest features and updates.

Upgrade now

TechKnowledge Content

The VB script library within Integration Manager contains the script pApplication = CreateObject("Dynamics.Application").quit under 'Closing Dynamics or eEnterprise Session' title. An 'Automation Error' is returned when this script is used during the integration process. As soon as the integration is finished, the script will try to close Microsoft Dynamics GP, and you will receive this error. Another problem with this script is the fact it uses Continuum for Visual Basic to perform the closure function. Tools Support does not support Continuum functions performed within VBScript or VBA applications. This does not mean you cannot try to use this script, however it does mean the Tools Support team will not support VB or VBA scripts using these functions.

The AutoDim program that is available from the Developer Support team provides this capability. With the AutoDim program, you can start Microsoft Dynamics GP and run one or more integrations or integration groups. After a successful Microsoft Dynamics GP integration, the AutoDim program exits both Microsoft Dynamics GP and Integration Manager. The AutoDim program also supports integrating into several different companies.

For more information about AutoDim, use one of the following options:

For more information about AutoDim, contact your partner of record. If you do not have a partner of record, visit the following web site to identify a partner: Microsoft Pinpoint

For more information about AutoDim, visit the following web site:


Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.