cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Cisco Community Designated VIP Class of 2020

153
Views
0
Helpful
1
Replies
Beginner

UCCX REST API Get using script variable

I am trying to make a REST API GET call to Service-Now to see if any user is found based on a variable of Calling Party ANI. I am only looking for a record and will make a decision if one exists or does not exist. 

 

I can make a successful REST GET using a "static" number entry but I am unable to craft the REST URL using a variable "sANI" that changes on every inbound call.

 

This works

"https://xxxxxxxxxxxxdev.service-now.com/api/now/table/sys_user?sysparm_query=mobile_phoneENDSWITH4959&sysparm_fields=user_name&sysparm_limit=1"

 

This fails, I have tried "sANI"  [sANI]  'sANI'  +sANI+  =sANI    

"https://xxxxxxxxxxxdev.service-now.com/api/now/table/sys_user?sysparm_query=mobile_phoneENDSWITH'sANI'&sysparm_fields=user_name&sysparm_limit=1"

 

Any assistance would be greatly appreciated.

 

 

1 REPLY 1
Collaborator

Re: UCCX REST API Get using script variable

Hopefully this will help. This is on the incident table though.

 

david

CreatePlease to create content
Content for Community-Ad
FusionCharts will render here