and more in a single search tool across platforms. Read the announcement here. |
02/02/2024 10:05 AM
Hello All,
We have Userimport configured using REST, 1st call is to get all attributes and along orgLevel1Code value, then we need make second call to get description of that code value ( which we received from call1). I am using multiCall type, please find userimport JSON
{
"type": "multiCall",
"call": [
{
"name": "call1",
"connection": "userAuth",
"url": "https://XXXXXX/personnel/v1/employee-changes/E12345",
"httpMethod": "GET",
"httpHeaders": {
"Content-Type": "application/json",
"Authorization": "${access_token}"
},
"colsToPropsMap": {
"username": "employeeId~#~char",
"firstname": "firstName~#~char",
"middleName": "middleName~#~char"
},
"userResponsePath": ""
},
{
"name": "call2",
"connection": "userAuth",
"url": "https://XXXXXX/configuration/v1/org-levels?code=GENADM",
"httpMethod": "GET",
"httpHeaders": {
"Authorization": "${access_token}"
},
"colsToPropsMap": {
"username": "employeeId~#~char",
"customproperty40": "description~#~char",
"customproperty41": "levelDescription~#~char"
},
"userResponsePath": ""
}
]
}
Trying to put dynamically (${response.call1.message.orgLevel1Code} which gives below error , anyone come across similar requirement ? any inputs ?
user import job error :
Error while getting User Import Response WebService call failed with responseStatusCode null | Failed url-https://XXXXXXX/configuration/v1/org-levels?code=${response.call1.message.orgLevel1Code} with Error Message-null |
Best Regards,
02/02/2024 07:43 PM
Refer sample
https://docs.saviyntcloud.com/bundle/REST-v24x/page/Content/Developers-Handbook.htm
02/12/2024 01:34 AM
Hi @IGAQ
In REST user import JSON, you can only iterate based on the username by using userIdentifier as the binding variable.
The binding variable response cannot be utilized in import JSON unlink the provisioning JSONS