Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

record producer

Shir Sharvit
Tera Contributor

Hey.
Would appreciate help..
I created a record producer:

ShirSharvit_0-1701785256799.png

 

I created a caller_id variable that refers to the sys_user (User) table:

ShirSharvit_1-1701785316121.png

 

My script include:

ShirSharvit_3-1701785799917.png

 

And then I used the Reference qualifier and calling in my script include when i call the caller_id i get undefined:

ShirSharvit_2-1701785520385.png

 

 

Why the script return undefined?

 

Thank. Shir

 

 

 

10 REPLIES 10

Marco0o1
Tera Sage

Hi @Shir Sharvit ,

Your are calling incorrectly you script include. Just use:

 

javascript: new PositionForRecordProducer().refinePosition(current.called_id);

 

Make sure you selected Advanced Reference qualifier.

 

Hope that help you.