How to autopopulate variable value of multi row variable set in another variable (which is not mrvs)

shivani39
Tera Expert

Hi All,

 

Can someone help me with the script, basically I want to auto populate a variable value which is single line text in a multi row variable set. This value should auto populate in another variable(which is not mrvs, but a normal multiline text).

Multi row variable set has number of rows, like if users add 5 rows, 5 times we will fill that single line text and all those 5 values should autopopulate in that multi line text variable.

 

Please help.

 

Thanks

Shivani

1 ACCEPTED SOLUTION

@jaheerhattiwale But from the above code its not reading all the rows. The field is inside each row, you can't see from this image. I am pasting another image for that field.

shivani39_0-1673530152062.png

 

View solution in original post

8 REPLIES 8

@shivani39 It shoudl read all the rows itslef.

BTW Which field you reading from the rows?

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023

@jaheerhattiwale But from the above code its not reading all the rows. The field is inside each row, you can't see from this image. I am pasting another image for that field.

shivani39_0-1673530152062.png

 

@shivani39 If the answer helped you then can you please my answer as correct answer?

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023

Hi @jaheerhattiwale / @shivani39 ,

We have a similar requirement but we need to populate all the variable set variables to a multiline text field on the form.

How can I achieve that? Could you help me with script