Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

ServiceNow : Customer needs to pass processType, employee data via SNOW API, how can we do?

mbh_it
Regular Contributor II
Regular Contributor II

Hello Team,

We have an API from SNOW team which passes following 

API URL say : https://XXX.com/api/x_abfs/sav_request

{
    "process_type""FT Onboarding - Back Office - Hybrid",
    "employee_data": {
        "name""TestUser01",
        "title""Sr Engineer",
        "dept""IT",
        "hire_date""2024-01-01",
        "email""TestUser01@abc.com"
    }
}


Can you please let me know if CreateAccount can be used ? As I tried, that but not working with WSRETRY(provisioning connection)
Tried below in CreateAccount
{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://SNowXYZ.com/api/x_abfs_sav_int/sav_request",
"httpMethod": "POST",
"httpParams": "{\"process_type\": \"FT Onboarding - Back Office - Hybrid\",\"employee_data\":{\"name\":\"Name\",\"title\":\"Employee Title\",\"dept\":\"department\",\"hire_date\":\"2024-01-01\",\"email\":\"example@example1.com\"},\"city\":\"${user.city}\",\"country\":\"${user.country}\",\"email\":\"${user.email}\",\"first_name\":\"${user.firstname}\",\"last_name\":\"${user.lastname}\",\"phone\":\"${user.phonenumber}\",\"employee_number\":\"${user.employeeid}\",\"user_name\":\"${user.username}\",\"u_fullname\":\"${user.displayname}\",\"u_employement_type\":\"${user.employeeclass}\",\"u_discovery_source\":\"Saviynt\"}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"unsuccessResponses": {
"error.message": "Operation Failed"
}
}
],
"accountIdPath": "call1.message.result.sys_id",
"responseColsToPropsMap": {}
}
 
Kindly let me know , your help is appreciated.
 
Thanks
Mahesh

 

2 REPLIES 2

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @mbh_it,

Can you please breif more about your usecase in details, and also share the postman response,
and what error do you see in the logs to troubleshoot it further.

Thanks.

If you find the above response useful, Kindly Mark it as "Accept As Solution".

mbh_it
Regular Contributor II
Regular Contributor II

Hi Sudesh,

I was able to figureout a solution, I used CreateAccount JSON, since it was just submitting Data from Saviynt. For now, I am good.

Thank you

Mahesh