Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Display Name Update for ServiceNow Application

Chakritha
New Contributor III
New Contributor III

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.

6 REPLIES 6

rushikeshvartak
All-Star
All-Star

You can achieve same using create Account JSON in REST Connector

Refer https://docs.saviyntcloud.com/bundle/ServiceNow-v24x/page/Content/ServiceNow-as-a-Managed-Applicatio... 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Chakritha
New Contributor III
New Contributor III

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.

{
"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"
}
}
]
}


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Chakritha
New Contributor III
New Contributor III

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.

Please share logs


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Chakritha
New Contributor III
New Contributor III

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.