Automatically create multiple child requests when a parent request is created (Deluge)

Automatically create multiple child requests when a parent request is created (Deluge)

PURPOSE:

When a request is created, multiple child requests can be generated under the same account as the parent request.

TESTED BUILDS: 14306, 14500, 14503, 14504 and 14507

STEPS:

1) Download and extract the zip file from the attachment.

2) Under Admin > Global Custom Function > New, paste the contents of Child request.txt. Update the build URL and Technician Key and save it with a name.


3)  Under Admin > Global Custom Function > New, paste the contents of Chid_json.txt and save it with a name.



Update the parent template name and the UDF fields. This place is where the account of the parent request and the child requests are mapped. 

The values, such as "requester": {"name":"$requester,$name"}, and "account": {"id":"$account,$id"}, provided within defining the child requests, are for calling the same requester name and the account of the parent request to the child request. In this way, any desired fields can be mapped between the parent and the child request. The syntax can be verified under Admin > API documentation.

Additional fields can also be provided in the script. Examples to include additional fields are already provided in the same Chid_json.txt file. This file can be modified accordingly.

4)  Go to Admin > Global Custom Function > New > Paste the contents of addAttachment.txt and save it with a name.



5)  Go to Admin > Global Custom Function > New > Paste the contents of findAllDynamicKeysMultiLevel.txt and save it with a name.



6) Under Admin > Global Custom Function > New, paste the contents of createChildRequest.txt and save it with a name.



7) Under Admin > Global Custom Function > New, paste the contents of getDynamicFieldValue.txt and save it with a name.



8) Go to Admin > Global Custom Function > New > Paste the contents of global_function_16_createChildJson.txt and save it with a name.



9) Under Admin > Request Custom Function > New Custom Function, paste the contents of custom_function_MultipleRequestsV3.txt  



10) Configure the custom trigger to invoke this custom function when a ticket is created. Child request IDs will be added as a note to the parent request.


                  New to ADSelfService Plus?