I want to reflect the number of entries in a multi-variable set in variables other than the variable set.

M_Tomy
Tera Expert

I am a beginner in development.
Please tell me.

I want to reflect the number of entries in a multi-variable set in variables other than the variable set.

(For example) 
I want to store the number of records in a multiple variable set of catalog items as a total number in other variable sets and display it on the screen.

P.S.
 I am not a native English speaker, so please forgive me if my question is difficult to understand.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can observe the Add/Remove button and determine the number of rows and populate in variable outside the MRVS

check this link

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

Multiple Row Variable Set showing Catalog Client Script SyntaxError: Unexpected end of JSON input an...

regards
Ankur

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

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can observe the Add/Remove button and determine the number of rows and populate in variable outside the MRVS

check this link

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

Multiple Row Variable Set showing Catalog Client Script SyntaxError: Unexpected end of JSON input an...

regards
Ankur

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

Dear Ankur.

Thank you for your prompt reply.
My English was not good enough and the completed image I wanted to convey was different.

Once again, my question is as follows.
I would like to store the number of records in a multivariable set in a separate variable as shown in the figure below.

find_real_file.png

Please let me know if you have any suitable knowledge.

Hi,

the link I shared has solution for your query

you can detect when user clicks Add so that accordingly you can update the outside variable

Did you check the links?

Regards
Ankur

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

Dear Ankur

I am sorry for the time and trouble I have caused you.
I will try to read and understand the knowledge with the members who are developing with me, and then try it in the development environment.

Please give me some time to reply as I will be away from tomorrow until Friday for training.