The CreatorCon Call for Content is officially open! Get started here.

How to populate a Variable in a Record producer, with content form a variable of a variable set.

Facundo Prado
Tera Expert

I have a Multi Row variable set in a record producer, in this Variable set i have a variable named Total expenses. 

FacundoPrado_0-1678477893127.png

When I create a ticket on service portal, i can set multiple rows in the variable set.

FacundoPrado_1-1678477982330.png


So, in a new Variable on the record producer (not in the varaiable set), I need to populate de SUM of the differents rows. For example:

FacundoPrado_2-1678478105105.png


The question is, How can I handle or populate those fields?

Thanks

2 REPLIES 2

Allen Andreas
Administrator
Administrator

Hi,

Please refer to this thread which is doing almost the exact same thing you're wanting to do: https://www.servicenow.com/community/developer-forum/multi-row-variable-set-client-script-to-do-some... 


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi,

Thanks for marking my reply as Helpful.

If it also helped guide you correctly, please also consider marking it as "Accept Solution".

Thanks and take care! 🙂


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!