Add and trigger predefined tasks to a request

Add and trigger predefined tasks to a request

Requirement:
Add a set of tasks to a request and trigger them all at once.

Steps to configure:
  1. Goto Admin > Developer Space > Global function > New > Paste the content from the attachment GF_4 - Configuration.txt  and save it with a name.
  2. Update the URL and integration key in the script. 
    1. You can get the integration key under Admin > Integrations > Integration Key > New
    2. Please use an integration key with admin privilege, as there wont be any role related permission issues. 

    3. Update the integration key in the global function.

  3. Go to Admin > Developer Space > Global Functions. Create a new function.
    1. Refer to the attached script. (PredefinedTasks.txt.)
    2. Update the task fields as per your requirement.
  4. Go to Admin > Developer Space > Request Custom Functions. Create a new function.
    1. Refer to the attached script. (addPredfinedTaskstoRequest.txt.)
      1. Update the global function count\API name in the custom function script as per your instance.
    1. Configure Request custom trigger to get executed on every request being created with a specific template.




                      New to ADSelfService Plus?