Flow designer to generate the REQ/RITM/SCTASK in ServiceNow

Rashmi N
Tera Contributor

Hi,

 

I have a requirement to generate REQ/RITM/SCTASK for set of condition using flow designer.

 

Conditions:

1.Assignment group with no members - for this condition I have to create one flow designer and it should create all REQ/RITM/SCTASK.

2.I need to get list of all the active assignment groups which does not contain any members in the description field.

 

Thanks,

Rashmi

1 REPLY 1

Shaqeel
Mega Sage

Hi @Rashmi N 

 

1. Create a Flow in Flow Designer:
- Navigate to Flow Designer in ServiceNow.
- Click on New -> Flow.
- Give a name to the flow and click on Submit.

2. Define the Trigger:
- Click on Add Trigger.
- Select the trigger as "Scheduled" if you want the flow to run at specific intervals.
- Define the schedule as per your requirement.

3. Define the Actions:
- Click on Add Action.
- Select the action as "Lookup Records".
- Set the table as "Group [sys_user_group]".
- Set the condition as "Active is true" and "Description is empty".
- This will give you the list of all active assignment groups which does not contain any members in the description field.

4. Create REQ/RITM/SCTASK:
- Click on Add Action.
- Select the action as "Create Record".
- Set the table as "Requested Item [sc_req_item]".
- Set the necessary fields like "Requested for", "Catalog Item", etc.
- Repeat the above steps for creating REQ and SCTASK.

5. Loop through the Groups:
- Click on Add Action.
- Select the action as "For Each".
- Set the input as the result of the "Lookup Records" action.
- Inside the loop, add actions to create REQ/RITM/SCTASK for each group.

6. Save and Test the Flow:
- Click on Save.
- Click on Test to test the flow.

Please note that you might need to adjust the above steps based on your exact requirements and ServiceNow setup.

 

 

Mark Helpful/Solution 🙂

 

Regards

Shaqeel


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel