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

multiCall userImport failing

IGAQ
New Contributor
New Contributor

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": ""
},

IGAQuestions_0-1706834814134.png{
"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 nullFailed url-https://XXXXXXX/configuration/v1/org-levels?code=${response.call1.message.orgLevel1Code} with Error Message-null

Best Regards,

 

 

 

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

Refer sample

Spoiler
{
"type": "multiCall",
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://<url>/api/v2/users.json",
"httpMethod": "GET",
"httpHeaders": {
"Content-Type": "application/json",
"Authorization": "${access_token}"
},
"colsToPropsMap": {
"username": "id~#~char",
"customproperty1": "email~#~char"
},
"userResponsePath": "users"
},
{
"name": "call2",
"connection": "acctAuth",
"url": "https://<url>/api/v2/users/${userIdentifier}.json",
"httpMethod": "GET",
"httpHeaders": {
"Authorization": "${access_token}"
},
"colsToPropsMap": {
"username": "user.id~#~char",
"customproperty45": "user.email~#~char"
},
"userResponsePath": ""
}
]
}

https://docs.saviyntcloud.com/bundle/REST-v24x/page/Content/Developers-Handbook.htm


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Vedanth-BK
Regular Contributor
Regular Contributor

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

Thank you
Vedanth B.K