Multi Row seletor Updation

DevYadav
Tera Contributor

Hi Community, Good day!

 

I am stuck on a requirement. 

 

Scenario:

I have an Incident table, and I have created a catalog item with the same variables as the incident record. The number variable is a multi-row selector, while the other variables match the incident record exactly.

 

When I select multiple incident records in the number variable, all other variables remain empty since no functionality has been applied yet.

 

Requirement:

If I enter values in the variables and submit the catalog item, generating an RITM, the selected incident records should be updated in the table accordingly.

 

I am using an After Update Business Rule, but it's not working as expected. I am not able to share the code at the moment. Could someone guide me on how to build this Code from scratch as we know table must be sc_req_item and filter condition is item is incident catalog?

 

Any help would be appreciated.

 

Thanks!

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@DevYadav 

you can get the MRVS string, parse it and then get the incident number and then update the record by querying incident table

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Can you help me via screenshots? 

@DevYadav 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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