Create multiple Child Requests(13002) - Deluge Script

Create multiple Child Requests(13002) - Deluge Script

This is same requirement as in https://pitstop.manageengine.com/portal/en/kb/articles/create-multiple-child-requests-deluge-script , but for SDP builds 13002 and above.
With the latest update, the global functions and custom functions can be referred directly using the API field names.

Use Case: 
When certain Services are requests by a user, under the service category 'User Management', multiple child requests have to be triggered.
In the sample shown below, two-child requests will be triggered when a Service Request is created using the template 'Employee Termination'.

Steps to configure:
1.  Download and extract the zip file contents.

2.  Goto Admin > Request Custom Function > Global Function > New > Paste the contents of global_function_4 - Configuration.txt  Update the build URL and Technician Key.


3.  Goto Admin > Request Custom Function > Global Function > New > Paste the contents of childJson.txt and save it with a name.  Update the parent template name and the UDF fields.


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



6.  Goto Admin > Request Custom Function > Global Function > New > Paste the contents of findAllDynamicKeysMultiLevel.txt and save it with a name.



7.  Goto Admin > Request Custom Function > Global Function > New > Paste the contents of createChildRequest.txt and save it with a name.



8.  Goto Admin > Request Custom Function > Global Function > New > Paste the contents of getDynamicFieldValue.txt and save it with a name.



9.  Goto Admin > Request Custom Function > Global Function > New > Paste the contents of global_function_16_createChildJson.txt and save it with a name.  



10.  Goto Admin > Request Custom Function > New Custom Function > Paste the contents of custom_function_MultipleRequestsV3.txt  


11.  Configure the custom trigger to invoke this custom function when a ticket is created.
12.  Child request ids will be added as a note to the parent request.


                  New to ADManager Plus?

                    New to ADSelfService Plus?