Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

MRVS onChange Not Triggering When Rows Are Deleted or "Remove All" Is Clicked in Service Catalog

AkhilT013667182
Tera Contributor

I have an MRVS with a DNS Type variable, and I'm populating an outside Single Line Text variable with all selected DNS values (e.g., DNS-A, DNS-B, NAME, HOST). This works when rows are added or updated.

However, when a user deletes a row using the X icon or clicks Remove All, the outside variable is not getting updated or cleared automatically.

Has anyone implemented this requirement? What is the recommended approach to detect MRVS row deletions and keep the outside catalog variable synchronized with the current MRVS values?

AkhilT013667182_0-1789142089629.png

@Brad Bowman  
@Tanushree Maiti 
@Ravi Gaurav 
@Ankur Bawiskar 



1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@AkhilT013667182 

check below links and it has logic to detect add/remove of MRVS

How to calculate the total of variables into another variable from a multi-row variable set? 

MRVS detect when a row is removed or deleted

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

2 REPLIES 2

Tanushree Maiti
Tera Patron

Hi @AkhilT013667182 

 

Try with g_service_catalog  API.

 

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

Ankur Bawiskar
Tera Patron

@AkhilT013667182 

check below links and it has logic to detect add/remove of MRVS

How to calculate the total of variables into another variable from a multi-row variable set? 

MRVS detect when a row is removed or deleted

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏

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