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

Issue with saviynt for saviynt connection

Abhi
New Contributor III
New Contributor III

To update the user's customproperty1 from analytics1 and customproperty2 from analytics2, I have created a sav4sav connection.

I can update CP1 when I call only 1 analytics, but when I call both analytics1 and analytics2 to update CP1, CP2 at the same time, then I am unable to update it.

Below Json that I am using

Connection Json:

{

"authentications": {

"conAuth": {

"authType": "oauth2",

"httpHeaders": {

"Accept": "application/json"

},

"authError": [

"InvalidAuthenticationToken"

],

"url": "https://****/ECM/api/login",

"httpMethod": "POST",

"httpContentType": "application/json",

"httpParams": "{\"username\":\"*******\",\"password\":\"*****\"}",

"errorPath": "error.code",

"maxRefreshTryCount": 2,

"tokenResponsePath": "access_token",

"tokenType": "Bearer",

"authHeaderName": "Authorization",

"accessToken": "Bearer ABCD",

"retryFailureStatusCode": [

401

]

}

}
}

 

Import User Json:

{
"type": "multiCall",
"call": [
{
"name": "call1",
"connection": "conAuth",
"url": "https://********/api/v5/fetchControlDetailsES",
"httpParams": "{\"analyticsname\":\"analytics1\"}",
"httpMethod": "GET",
"httpHeaders": {
"Content-Type": "application/json",
"Authorization": "${access_token}"
},
"colsToPropsMap": {
"username": "username~#~char",
"customproperty1": "firstname~#~char"

},
"userResponsePath": "result"
},
{
"name": "call2",
"connection": "conAuth",
"url": "https://*****/ECM/api/v5/fetchControlDetailsES",
"httpParams": "{\"analyticsname\":\"analytics2\"}",
"httpMethod": "GET",
"httpHeaders": {
"Authorization": "${access_token}"
},
"colsToPropsMap": {
"username": "username~#~char",
"customproperty2": "lastname~#~char"
},
"userResponsePath": ""
}
]
}

5 REPLIES 5

rushikeshvartak
All-Star
All-Star
  • What is error you are getting ?
  • Try creating 2 connections in connection json
  • please share logs
  • can't you merge both analytics.

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

Abhi
New Contributor III
New Contributor III

@rushikeshvartak 

  • I am not getting any errors, and also, CP1 is getting updated, which means only call 1 is working, I believe.
  • I tried to create two connections but no luck
  • No, we can't merge both analytics because two are different use cases

 

NM
Regular Contributor III
Regular Contributor III

Try calling analytics 2 only ..see if it makes any changes. 

Abhi
New Contributor III
New Contributor III

@NM 

Only one call is working 

It seems multi call is not supported to User Import


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