How to build workflow to create single servicenow ticket for all enddate users?

created workflow to create single SNOW ticket by looping all end date identities using search query. but we are facing problem inside manage service now action what we need to add so that we get all identities names in description of SNOW ticket.

Hi @satishNG
It might not be possible to use a workflow to create just one ServiceNow ticket which has details of all the users. For this, choose to go down a script route (PowerShell).

However, if you are open to one ticket per user, you can achieve this with a workflow that has the following steps:

  1. Decide on the trigger for your workflow. Since you don’t have a requirement specified, I’ll suggest a scheduled trigger, firing once a week. Feel free to use a trigger of your choice that best fits your requirement.
  2. Make an ISC REST API call using ‘HTTP Request’ step. Toggle error handling to end with error step or take corrective measures on error, like notifying an admin. In this step, perform search by formulating the intended search query and running it using the ISC Search REST API Endpoint.
  3. Loop through the response, and for each identity: Use step Get Identity → Store required identity attributes in a Define Variable Step → Use another HTTP Request step to make an API call against ServiceNow to create SNOW ticket. Toggle error handling for the HTTP Request.

Hope this helps.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.