Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/25/2024 05:48 AM
Hi Team,
We got the below requirement from ServiceNow application. Can any one please help us with the feasibility to achieve this from Saviynt Application?
Requirement:
Case:1 User having only First Name and Last Name
Create Display name with First Name & Last Name
Case:2 User having First Name, Preferred First Name and Last Name
Create Display Name with Preferred First Name and Last Name
Thank you,
Chakritha.
Solved! Go to Solution.
06/25/2024 08:56 PM
You can achieve same using create Account JSON in REST Connector
07/04/2024 04:17 AM
Hi,
We have tried with the below create account JSON and getting the below error. Can anyone help on us.
Error:
{"auditDetails":{"call1":[{"message":"Unexpected character ('$' (code 36)): was expecting double-quote to start field name\n at [Source: {\"city\":\"${user.city}\",\"company\":\"${user.companyname}\",\"department\":\"${user.departmentname}\",\"email\":\"${user.email}\",\"employee_number\":\"${user.employeeid}\",${if(user.preferedfirstname!=null){'\"first_name\": \"'user.preferedfirstname'\",'}else{'user.firstname'}},\"last_name\":\"${user.lastname}\",\"location\":\"${user.location}\",\"manager\":\"${user.customproperty3}\",\"mobile_phone\":\"${user.secondaryPhone}\",\"phone\":\"${user.phonenumber}\",\"state\":\"${user.customproperty16}\",\"street\":\"${user.street}\",\"title\":\"${user.title}\",\"user_name\":\"${user.username}\",\"u_description\":\"${user.customproperty30}\",\"u_employee_type\":\"${user.employeeType}\",\"zip\":\"${user.customproperty10}\"}; line: 1, column: 158]","status":"Failed"}
Create Account JSON:
{
"accountIdPath": "call1.message.result.sys_id",
"responseColsToPropsMap": {},
"call": [
{
"name": "call1",
"connection": "userAuth",
"url": "Servicenow URL",
"httpMethod": "POST",
"httpParams":"{\"city\":\"${user.city}\",\"company\":\"${user.companyname}\",\"department\":\"${user.departmentname}\",\"email\":\"${user.email}\",\"employee_number\":\"${user.employeeid}\",${if(user.preferedfirstname!=null){'\"first_name\": \"'user.preferedfirstname'\",'}else{'user.firstname'}},\"last_name\":\"${user.lastname}\",\"location\":\"${user.location}\",\"manager\":\"${user.customproperty3}\",\"mobile_phone\":\"${user.secondaryPhone}\",\"phone\":\"${user.phonenumber}\",\"state\":\"${user.customproperty16}\",\"street\":\"${user.street}\",\"title\":\"${user.title}\",\"user_name\":\"${user.username}\",\"u_description\":\"${user.customproperty30}\",\"u_employee_type\":\"${user.employeeType}\",\"zip\":\"${user.customproperty10}\"}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"unsuccessResponses": {
"error.message": "Operation Failed"
}
}
]
}
Thank you,
Chakritha.
07/04/2024 07:45 PM
{
"accountIdPath": "call1.message.result.sys_id",
"responseColsToPropsMap": {},
"call": [
{
"name": "call1",
"connection": "userAuth",
"url": "Servicenow URL",
"httpMethod": "POST",
"httpParams": "{\"city\":\"${user.city}\",\"company\":\"${user.companyname}\",\"department\":\"${user.departmentname}\",\"email\":\"${user.email}\",\"employee_number\":\"${user.employeeid}\",\"first_name\":\"${user.preferedfirstname != null ? user.preferedfirstname : user.firstname}\",\"last_name\":\"${user.lastname}\",\"location\":\"${user.location}\",\"manager\":\"${user.customproperty3}\",\"mobile_phone\":\"${user.secondaryPhone}\",\"phone\":\"${user.phonenumber}\",\"state\":\"${user.customproperty16}\",\"street\":\"${user.street}\",\"title\":\"${user.title}\",\"user_name\":\"${user.username}\",\"u_description\":\"${user.customproperty30}\",\"u_employee_type\":\"${user.employeeType}\",\"zip\":\"${user.customproperty10}\"}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"unsuccessResponses": {
"error.message": "Operation Failed"
}
}
]
}
07/05/2024 02:54 AM
Hi @rushikeshvartak ,
We have tried with above JSON but getting the below error.
{"headers":null,"message":"","statusCode":null,"description":null,"status":"Failed"}]},
Thank You,
Chakritha.
07/05/2024 06:15 AM
Please share logs
07/09/2024 02:15 AM
Thank You,
We are able to solve the issue and the Issue happen due to some Mandatory data missing after updating we are able to provision the user.