Generate multiple RITMs on basis of multi row variable

Chenab Khanna
Tera Expert

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'

find_real_file.png

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?

14 REPLIES 14

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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.

Hi Chenab,

Can you explain the current catalog item is different than the one which you wish to create RITM

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

I want to create multiple Ritm’s for current catalog item itself