I created a simple event script that needs to pass engagement details to a 3rd party app. The contact center users’ “Display Name” have been set as the userID of the 3rd party app and I’m using the agent system variable “global_system.Agent.displayName“ in the script to provide this info. When testing the script using requestcatcher, I am seeing the Zoom User display name is being sent, not the Contact Center User display name. Is this not correct or am I missing something?
async function main () {
let caller_number = var_get()[“global_system.Engagement.ANI”];
let new_caller_number = caller_number.replaceAll(‘-’, ‘’);
new_caller_number = new_caller_number.replaceAll(‘+1’, ‘’);
let ivueuid = var_get()[“global_system.Agent.displayName”];
req.get(“httpx://nschett.requestcatcher.com/zoomtest?phoneNbr=” + new_caller_number + “&userName=” + ivueuid + “&companyId=07037&enterpriseId=07037”);
}