Posted Fri, 01 Feb 2019 08:33:34 GMT by

I have a constant SQL connection string that I am looking to programmatically update as the Data Source name does change with deployments. Is there a function that could perform this?

Using Automate 10.6.

Posted Sat, 02 Feb 2019 04:17:45 GMT by

Hi Moses,

You will need to populate a variable with the constant value during execution and then update the datasource. Currently there is no functionality to update constants programmatically. 

 

-Leonard

Posted Sat, 02 Feb 2019 06:47:15 GMT by

If I recall correctly, the API does allow for the modification of constants created at the agent level, but not at the server level.

Posted Tue, 05 Feb 2019 03:05:50 GMT by

you can edit the xml config / registry

Posted Wed, 06 Feb 2019 08:32:10 GMT by

@David Seibel - Are you able to direct me to more information about the agent level API?

@Stephen Woodward - Do you mean the AML code? If not, can you provide some more information on this?

Posted Wed, 06 Feb 2019 08:36:09 GMT by

@David Seibel - Are you able to point me in the direction of some documentation for this API?

@Stephen Woodward - Do you mean the AML code? If not, can you explain further?

Posted Thu, 07 Feb 2019 04:39:15 GMT by

Hi Moses,

The API documentation:

http://cloud.networkautomation.com/installs/AutoMate/v10/10.5.0.56/BPA_RESTful_API.html#07

 

The constants are stored in the registry in version 10 in:

HKEY_LOCAL_MACHINE\SOFTWARE\AutoMate\AutoMate 10\Constants

Posted Thu, 07 Feb 2019 04:39:43 GMT by

_

You must be signed in to post in this forum.