Accessing a variable inside a Record producer script?

terp
Giga Contributor
Accessing a variable inside a Record producer script? I've seen various answers to this question.   -   What is the official answer? current.variablename or producer.variablename
1 ACCEPTED SOLUTION

Abhinay Erra
Giga Sage

it is producer.<variable_name>. "current" points to the record which is about to get created from this record producer.


View solution in original post

9 REPLIES 9

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Eric,



For record producers it should be producer.variablename. For catalog items it will be current.variablename.


I hope this answers your question.


Hello,



I have a catalog item generated from a record producer. What would it be in this case?



Thanks


Ira


Hi Pradeep, 

 

how could I pass a Value from multiple choice question on record producer to the back end form? 

That is the question on the record producer: 

find_real_file.png

 

current.u_boolean_3 = producer. <and then what?>

Any help would be appreciated. 

 

Abhinay Erra
Giga Sage

it is producer.<variable_name>. "current" points to the record which is about to get created from this record producer.