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.

how to retrieve record producer name is producer script?

Deepak Ingale1
Mega Sage


Hello,

I want to have a record producer name to map to particular field in my incident / request / change table.

For that I want to take advantage of Script functionality available with Record Producer. however, with the help of producer. (producer dot) I could not pull record producer name in my script.

Can any 1 help me in this case?

1 ACCEPTED SOLUTION
15 REPLIES 15

Sorry, just seeing this now. the parameter sysparm_id works for native interface, but not portal. You can use something like:  

current.field = RP.getParameterValue('sysparm_id') || RP.getParametervalue('sys_id'); to accept whichever parameter it is.