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.

Pass Caller Location from Record Producer

steveturley
Tera Guru

Hi.

I have a Record Producer capturing incident details on the portal. We've just introduced User Locations and this populates a read-only field on the Incident form.

However, when a user submits an incident via the portal, the users location doesn't insert into the read-only field.

I've attached a script that was created when the Record Producer was built (presumably)

 

Thanks!

1 ACCEPTED SOLUTION

steveturley
Tera Guru

I think I've worked it out. I've changed your script to 

current.incidentlocationfieldname = producer.caller_id.location;

 

and it seems to have worked! 

Thanks so much for the pointers

View solution in original post

5 REPLIES 5

Glad it worked but I provided you script and since I didn't know exact field names I have provided like that. Could you please mark my answer as correct and close the thread ?

Please hit like and mark my response as correct if that helps
Regards,
Musab