Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Find Record Producer name for a variable in a variable set

wiltonr
Giga Contributor

If I have a string variable on a Record Producer (say Record Producer Name), I can set the default value to javascript:current.cat_item and it will populate the variable with the name of the current record producer.

If I have a variable set on the record producer with the same variable (so I can use it in multiple record producers) how can I get the name of the current record producer when the form is loaded (in the Service Portal)?

Thanks,

Rhonda

1 ACCEPTED SOLUTION

rahulpandey
Kilo Sage
Hi Rhonda, You can write an onload client script, which will call a script include, whereyou can pass current record producer sys_id using g_form.gerUniqueValue(); as a parameter and get back the producer name via gliderecord in script include , and populate it in the string field.

View solution in original post

3 REPLIES 3

rahulpandey
Kilo Sage
Hi Rhonda, You can write an onload client script, which will call a script include, whereyou can pass current record producer sys_id using g_form.gerUniqueValue(); as a parameter and get back the producer name via gliderecord in script include , and populate it in the string field.

Thanks so much!

A minor variation to above usecase. I had to make a variable to store the record producer that is used to create an incident.

i made a variable of type reference and made default value as javascript:g_form.getUniqueValue()

Using this approach, I was able to also populate assignment group on incident based on fulfillment group on record producer.

current.assignment_group = producer.<variable_name>.group;