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

REST multiple API call for Userimport JSON

txvajrag
New Contributor III
New Contributor III

Hi,

Am trying to import part of data from API endpoint 1 and part of data from API endpoint2 both have the common unique value. How can i accommodate in userimportjson both calls? i tried using type:multicall. it doesnt seem to working. Any ideas let me know.

 

Thanks

TV 

 

12 REPLIES 12

rushikeshvartak
All-Star
All-Star

Share json and logs


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

{

"type":"multicall",
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://api.veritystream.cloud/services/verityconnect/api/core/v1/Demographics/All",
"httpMethod": "POST",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"httpParams": "{}",
"userResponsePath": "Value.Result",
"colsToPropsMap": {
"username": "Id~#~char",
"customproperty1": "Dr_Id~#~char",
"FirstName": "FirstName~#~char",
"LastName": "LastName~#~char",
"customproperty3": "NPI~#~char"
},
"successResponses": {
"statusCode": [
200,
201,
202,
203,
204,
205
]
},
"pagination": {
"nextUrl": {
"nextUrlPath": "${response.completeResponseMap.next_page==null?'':response.completeResponseMap.next_page}"
}
}
},
{
"name": "call2",
"connection": "acctAuth",
"url": "https://api.veritystream.cloud/services/verityconnect/api/core/v1/Demographic/CredentialsLicenses/al...",
"httpMethod": "POST",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"httpParams": "{}",
"userResponsePath": "Value.Result",
"colsToPropsMap": {
"username": "Id~#~char",
"customproperty1": "Dr_Id~#~char",
"customproperty2": "LicenseNumber~#~char",
"customproperty10":"Active~#~boolean"
},
"successResponses": {
"statusCode": [
200,
201,
202,
203,
204,
205
]
},
"pagination": {
"nextUrl": {
"nextUrlPath": "${response.completeResponseMap.next_page==null?'':response.completeResponseMap.next_page}"
}
}
}
]
}

Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]



⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️


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

NM
Honored Contributor II
Honored Contributor II

Hi @txvajrag , POST call with no param is it right??

txvajrag
New Contributor III
New Contributor III

Yes , for single call Saviynt is able to bring the data

Postman details, please 


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

For single call its working in Saviynt as well. I wanted to see if we can call 2 API's 

Can you share the call2 response from Postman?


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

txvajrag_0-1723238129207.png

 

"userResponsePath": "",
"colsToPropsMap": {
"username": "Value.Result.Id~#~char",


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

when its working for call1 API when i have used Value.Result as userresponsepath, why it wont work for call2 api cause its the same. 

If its not working share latest logs 


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