Multi Row Variable Set Access Values

MariaVitorS
Tera Contributor

Hi guys, what's up?
I have a catalog item that has a multi row variable set. For this item I have a flow that generates a new RITM for each row inserted in the variable set. However, I need to add a new rule so that for each new task in each RITM the short description is automatically set according to the 'solicitud' variable (which is of type choice) in my multi row variable set. I'm trying to make this script inside the Create catalog task action, in the short description field, but I'm having trouble accessing the values of the variable inside the mrvs, could you help me?

 

MariaVitorS_0-1737461842713.pngMariaVitorS_1-1737461904627.png

 

7 REPLIES 7

I managed to do it this way, but I brought the value and I'd like the display name...

MariaVitorS_0-1737464707895.pngMariaVitorS_1-1737464743755.png

 

@MariaVitorS 

what type of variable is it? Is it a drop down with choices?

then you need to use script if it's choice

return fd_data._16__for_each.item.server_os.getDisplayValue(); // select the correct for each action and variable name

AnkurBawiskar_0-1737470653521.png

 

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

@MariaVitorS 

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