and more in a single search tool across platforms. Read the announcement here. |
12/14/2022 05:30 PM
Hello,
I am trying to create a test user in service now using the REST connector. The 'rule run' job picks up the account in EIC that needs to be created in SNOW. Once the provisioning job is complete, I can see the account in SNOW, but the only field populated is 'title'. The user account has other fields like firstname, lastname, email & city. I don't see any error in logs after running provisioning job. Below is the create accounts json for this connector, updated the same one present in connector guide.
{
"accountIdPath":"call1.message.result.sys_id",
"responseColsToPropsMap":{
},
"call":[
{
"name":"call1",
"connection":"acctAuth",
"url":"https://testing.service-now.com/api/now/table/sys_user",
"httpMethod":"POST",
"httpParams":"{\"email\":\"${user.email}\",\"first_name\":\"${user.firstname}\",\"last_name\":\"${user.lastname}\",\"employee_number\":\"${user.name}\",\"title\":\"${user.title}\"}",
"httpHeaders":{
"Authorization":"${access_token}"
},
"httpContentType":"application/json",
"unsuccessResponses":{
"error.message":"Operation Failed"
}
}
]
}
12/14/2022 08:11 PM
{
"accountIdPath":"call1.message.result.sys_id",
"responseColsToPropsMap":{
},
"call":[
{
"name":"call1",
"connection":"userAuth",
"url":"https://<domain-name>/api/now/table/sys_user",
"httpMethod":"POST",
"httpParams":"{\"email\":\"${user.email}\",\"first_name\":\"${user.firstname}\",\"last_name\":\"${user.lastname}\",\"employee_number\":\"${user.employeeid}\",\"user_name\":\"${user.username}\",\"title\":\"${user.title}\"}",
"httpHeaders":{
"Authorization":"${access_token}"
},
"httpContentType":"application/json",
"unsuccessResponses":{
"error.message":"Operation Failed"
}
}
]
}
12/15/2022 11:30 AM
We do not have a user_name attribute in our SNOw instance, hence mapping 'employeeid' to the user.name field in EIC. does that matter?
12/15/2022 12:31 PM
There is no field called user.name
map to user.username
12/16/2022 11:24 AM
Thank you, I tried the same but the result was the same..the only field updated was 'title'.