Generate multiple RITMs on basis of multi row variable

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2020 07:57 AM
Hi
For a catalog item, I have a multi row variable along with different columns. This variable contains the user's list with 'name' and 'action'. The column action contains 3 values - 'add', 'remove', 'no action'
What my requirement is, for every user with action as any of the 3 values, a RITM should get created and workflow should get executed everytime. Workflow has some validations to be done for each user separately.
So if there are 2 rows, 2 RITM's should get created and workflow should get executed twice, doing validation for each user.
If anyone can help in achieving this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2020 08:00 AM
Hi Chenab,
So are you saying based on the value of the current MRVS another RITM has to be created from script?
So you will be having workflow associated to that catalog item for which RITM would be generated?
Can you please explain the steps or what is required.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2020 08:10 AM
Hi Ankur
Thanks for replying.
Let me explain by an example -
As per the screenshot earlier - i have 2 users
So I want a RITM to be created each for Fred and Aakanksha and also, complete workflow to be executed separately for both the users.
Something like a parent workflow where i write a for loop in which on basis of some condition i call the existing workflow. The exisiting workflow works successfully for 1 user. I want the same thing for multiple users.
Want to know the best way i can achieve this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2020 09:37 AM
Hi Chenab,
Can you explain the current catalog item is different than the one which you wish to create RITM
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2020 10:39 AM