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 ADManager Plus?

                    New to ADSelfService Plus?

                      • Related Articles

                      • How to automatically create multiple child requests from a parent request with a configurable JSON file (V3)

                        This is a sample Python script to automatically trigger the creation of multiple child requests from a parent request, based on the request template chosen. The request ID of the child requests will be added as a Note in the parent request. This is ...
                      • Risk Matrix for Change using Custom Module

                        PURPOSE: Creating Risk matrix for changes that automatically calculates the risk of a change based on its priority and impact. Similar to the Priority matrix in the request module. TESTED IN BUILDS: 14504 STEPS: Step 1: Configure the Custom Module: ...
                      • Merge Similar Requests

                        Requirement: In an organization, multiple requests being created for the same issue. So we will have to merge all the similar requests. UseCase: Assume there is a printer issue in an organization, and a request has already been registered for the ...
                      • Custom script to add requrest ID and text (based on cx preference) to subject in a request Template

                        When a request is created cx wants to update the subject automatically with a text "SAGA" followed by request ID and subject, for all requests with any criteria. Subject Format : "SAGA" + ticket number + subject Please follow the below steps: 1. ...
                      • Create New request using Python Script

                        Script to raise a new request using Python Script. Pre-requisite - Python should be installed in the server and configured. You can review the instructions here - Requests module should be installed with the python Steps 1. Download the zip file from ...