How to populate affected user's location in ServiceNow

Originally asked by Andrew on 03 November 2021 (original question)


Hello,

I am getting from Jira reporter and setting caller_id in INC in SNOW as below:

def localCaller = nodeHelper.getUserByEmail(replica.reporter?.email)?.key

incident.caller_id = localCaller

How to set caller’s location in INC SNOW using exalate incoming script?

SNOW field task.location on INC form is reference to cmn_location table, not sys-user table.