Automatic association of accounts to templates using call back functions

Automatic association of accounts to templates using call back functions

Compatible for 14303 build 

This KB is used when the user wants to associate the accounts to template automatically using callback functions. Below are the configuration steps to be followed in order associate an account to template.

STEPS:
1. Create a global function with
Function Name--> Get Configurations
Return type--> Map
API Name--> getconfigurationfor
Parameters--> configname - String
and save the content under filename Get Configurations.txt.


2. Create one more global function with
Function Name--> Generate Response
Return type--> Map
API Name--> generateresponse
Parameters--> 
parameter_map - Map
method - String
configname - String
url - String
and save the content under file name Generate Response.txt.


3. Create a callback function with
Function Name--> Update account of template
Return type--> Map
API Name--> updateaccount
Parameters-->
accountid - int
templateId - int
and save the content under file Update account of template.txt 

Once the custom call back function is saved, "URL to execute this Custom Function" will be generated.
How to invoke this custom call back function
Method : POST
URL :  Copy paste from custom call back function
for example--> http:/abc.com/AppIntegrations?serviceName=callbackFunctions&api_name=updateaccount&auth_token=5d7ec0c8966a138c281265c16d118590d0e285379cf8bca665dcc2324b71933fe06107b4416146f2d84c2c0ed7bba722a5e3047adeae7a56ddcc2110107b9fbfdc3cd92e&PORTALID=1
Body form data
rawDataContent={"accountid":"901","templateId":"2401"}
Note: replace 901 with accountid, replace 2401 with templateid. For now only one accountid and templateId can be passed.

                  New to ADManager Plus?

                    New to ADSelfService Plus?