We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

How to Update Parent RITM MRVS Values

GlideC
Giga Contributor

Hi, I have a requirement where a Catalog Item creates a parent RITM along with child RITMs.

The parent RITM contains an MRVS -Multi-Row Variable Set
sFrom the child RITM flow, I need to update the parent RITM’s MRVS by adding a new row with valuez inserting a new record into the multi-row variable set)

Can anyone help me with this Logic.


Thanks in advance.

2 REPLIES 2

Priyanka64
Tera Contributor

Hello @GlideC ,

 

This is possible, but MRVS values are stored as JSON, so from the child RITM flow/script you need to:

  • Fetch the parent RITM
  • Read the existing MRVS JSON
  • Parse it
  • Push a new row object
  • Convert back to JSON
  • Update the parent RITM

If using Flow Designer -

Use:
Look Up Record - Parent RITM
Script Step - Modify MRVS JSON
Update Record

 

 

If this helps, kindly mark the answer as helpful/correct.

 

Thanks,

Priyanka

Ankur Bawiskar
Tera Patron

@GlideC 

yes this is possible

what script did you add in your flow?

💡 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