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

How to call multiple account ids in connection JSON under httpParams

Padmavathi
Regular Contributor II
Regular Contributor II

Hi Team,

we are onboarding salesforce marketing cloud application in saviynt. here the salesforce marketing have 3 business units and they contain 3 MID's (accountid's). 

when we try to pass separately able to import that particular account (business unit )details. but have a requirement to pass multiple business ids in connection json and import json.

can anyone help us with the sample json to pass multiple account ids in connection json ?

present with single id we are using below format in connection json

 

{
"authentications": {
"userAuth": {
"authType": "oauth2",
"url": "https://***********/v2/token",
"httpMethod": "POST",
"httpParams": {
"grant_type": "client_credentials",
"client_secret": "**********",
"client_id": "***********",
"account_id": "1234" // here need to pass multiple id's
},
"httpHeaders": {
"contentType": "application/x-www-form-urlencoded"
},
"httpContentType": "application/x-www-form-urlencoded",
"retryFailureStatusCode": [
500
],
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"InvalidAuthenticationToken",
"ExpiredAuthenticationToken"
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "",
"accessToken": "abcd23456765432"
},
"entAuth": {
"authType": "oauth2",
"url": "https://**********/v2/token",
"httpMethod": "POST",
"httpParams": {
"grant_type": "client_credentials",
"client_secret": "*****",
"client_id": "*****",
"account_id": "123456" // here need to pass multiple id's
},
"httpHeaders": {
"contentType": "application/x-www-form-urlencoded"
},
"httpContentType": "application/x-www-form-urlencoded",
"retryFailureStatusCode": [
401
],
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"InvalidAuthenticationToken",
"ExpiredAuthenticationToken"
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "Bearer abcd23456765432"
}
}
}

Thanks in advance!

4 REPLIES 4

NM
Esteemed Contributor
Esteemed Contributor

@Padmavathi share postaman screenshot.

You need to have seperate connection auth for it in connection json 

They way you created acctauth and entauth.. create 2 more.


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

rushikeshvartak
All-Star
All-Star
  • If account id change per authentication then you need to have multiple authentication also in import account json u need to repeat same code 3 times

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

Padmavathi
Regular Contributor II
Regular Contributor II

Hi @rushikeshvartak  @NM 

Yeah we have tried placing 3 calls in acctEntParams in import json and 3 separate connection auth in connection json. but unable to import all the accountid's, one time one accountid related accounts only able to import. 


Regards,

Padmavathi

  • Any error in logs ?

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