multiple RITM's from once catalog item request

Shiva Kumar8
Kilo Guru

Hi Community,

I would like to create multiple RITM"s from a single catalog item from service portal and assign them to different assignment groups can anyone share a sample script about how can I implement that using a Business rule.

Thanks in advance,

Shiva.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Shiva,

So are you saying once user submits catalog item ABC; then after submission you want to create multiple RITMs for the same catalog item or for different catalog item.

below links has the sample script; please go through those

create multiple RITM

Creating Multiple RITMs from one RITM in Workflow - Trouble setting variables

Generate multiple RITMs based on list collector variable

Is it possible to create multiple RITM from a list collector?

Regards
Ankur

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

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Shiva,

So are you saying once user submits catalog item ABC; then after submission you want to create multiple RITMs for the same catalog item or for different catalog item.

below links has the sample script; please go through those

create multiple RITM

Creating Multiple RITMs from one RITM in Workflow - Trouble setting variables

Generate multiple RITMs based on list collector variable

Is it possible to create multiple RITM from a list collector?

Regards
Ankur

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

Servicenow Use4
Kilo Guru

Hello..

1. do you want to create duplicate RITMs having the same data?

or

2. you want each RITM to have different set of data but associated with the same REQ number?

For 2., you have an option called 'Add'. So you enter all data in the catalog item and click on 'Add', then enter another set of data and click on 'Add'.

Suppose you do this 2 times, and finally click on 'Order now', the REQ will be created having 2 RITMs. 

 

Now, to assign these RITMs to different Assignment Groups, you could try writing a insert Business Rule, with condition in addQuery() as - Catalog Item is XYZ (whatever is the name on your end) and also the condition that would decide the assignment group to be set.

 

Thanks!

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Shiva,

Any update on this thread?

Regards
Ankur

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