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

Unable to parse Response in Rest Connector

Karthik
New Contributor II
New Contributor II

Team,

We are receiving the Rest response with back slash as per the logs Because of this back slash  we are unable to import the account .The same response in Postman shows the right format. Please suggest your inputs.

{ \"date\":2024-03-04,\"rownumber\":8,\"accounts\":[ {

\"useraccount\":\"XXX\",\"email\":\"XXX\",\"cname\":\"XXX\",\"roles\":[ { \"rolecode\":\"common\"}, { \"rolecode\":\"DDPM\"}, { \"rolecode\":\"guest\"} ]}

We are using "httpContentType": "application/json" and header is blank

"httpHeaders": { }, 

4 REPLIES 4

AmitM
Valued Contributor
Valued Contributor

Are you importing accounts or provisioning?

Can you share your import/provisioning JSON and screen shot from postman.

Thanks,

Amit

If this answers your query, Please ACCEPT SOLUTION and give KUDOS.

Karthik
New Contributor II
New Contributor II

Amit

I am trying to import accounts.

 

Here is the Json which I am using

 

{
"accountParams": {
"acctEntMappings": {
"Roles": {
"idPath": "",
"keyField": "entitlementID",
"listPath": "rolecode"
}
},
"call": {
"call1": {
"callOrder": 0,
"colsToPropsMap": {
"accountID": "email~#~char",
"customproperty11":"#CONST#Active~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char",
"name": "email~#~char"
},
"http": {"httpParams": "{\"client_id\": \"fffsj\",\"client_secret\": \"9C4A\"}",
"httpContentType": "application/json",
"httpHeaders": {
"Accept": "text/json"
},
"httpMethod": "POST",
"url": "http://abc/def"
},
"keyField": "accountID",
"idPath": "email",
"listField": "accounts",
"stageNumber": 0
}
},
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"statusAndThresholdConfig": {
"accountThresholdValue": 50,
"activeStatus": [
"Active"
],
"correlateInactiveAccounts": false,
"deleteLinks": true,
"inactivateAccountsNotInFile": false,
"statusColumn": "customproperty11"
}
},
"acctEntParams": {
"processingType": "acctToEntMapping"
},
"entitlementParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"entTypes": {
"Roles": {
"entTypeOrder": 0,
"call": {
"call1": {
"callOrder": 0,
"colsToPropsMap": {
"entitlement_value": "rolecode~#~char",
"entitlementID": "rolecode~#~char"
},
"http": {
"httpParams": "{\"client_id\": \"fffsj\",\"client_secret\": \"9C4A\"}",
"httpContentType": "application/json",
"httpHeaders": {

},
"httpMethod": "POST",
"url": "http://abc/def"
},
"keyField": "entitlementID",
"listField": "data"
}
}
}
}
}
}

@Karthik  can you share the sample response from Postman?

 

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

Karthik
New Contributor II
New Contributor II

Response as per saviynt logs

 

{ \"date\":2024-03-04,\"rownumber\":8,\"accounts\":[ {\"useraccount\":\"aa\",\"email\":\"xxx@123.com\",\"cname\":\"test\",\"roles\":[ { \"rolecode\":\"admin\"} ]},cookies:[], statusCode:200]\n","stream":"stdout","time":"2024-03-04T08:30:43.069570981Z"}