Create multiple Child Requests - Depending on a Resource Question(13002) - Deluge

Create multiple Child Requests - Depending on a Resource Question(13002) - Deluge

With the latest update, the global functions and custom functions can be referred directly using the API field names.

Use Case: 
When a new Employee is joining in the organisation based on resource question we need to create multiple child requests
Like,
1. Providing Laptop/Desktop based on the parent resource question
2. Providing Additional monitor
3. Providing Deskphone/Extension etc...

For instance, I am considering the New Hire Template with some resources questions and a check box of list of devices required.
Depending on the answers selected we are creating new child requests.

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

2.  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.


Note:  "New Hire" is the key used to get the request object in the ChildJson Map. The name of the template can be stated inside the object.

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


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



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



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



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



8.  Goto Admin > Request Custom Function > 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 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.

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?