Create multiple Child Requests - Latest

Create multiple Child Requests - Latest

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, we have used two parent ticket template.  one demonstrating additional field and the other for demonstrating the resource questions fields.  

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

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


3.  Goto Admin > Developer Space > 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 > Developer Space > Global Function > New > Paste the contents of addAttachment.txt and save it with a name.



5.  Goto Admin > Developer Space > Global Function > New > Paste the contents of createChildRequest.txt and save it with a name.



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


7.  Goto Admin > Developer Space > Global Function > New > Paste the contents of getDynamicFieldValue.txt and save it with a name.


8.  Goto Admin > Developer Space > Global Function > New > Paste the contents of createChildJson.txt and save it with a name.  



9.  Goto Admin > Request Custom Function > New Custom Function > Paste the contents of RCF_createChildRequest.txt  

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

If you are looking to link all the created child tickets, then use "createChildJson_Link_Request.txt" instead of "createChildJson.txt"

                  New to ADSelfService Plus?