Click HERE to see how Saviynt Intelligence is transforming the industry. |
11/07/2024 01:28 AM
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!
11/07/2024 05:16 AM
@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.
11/07/2024 05:31 AM
11/07/2024 05:50 AM
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
11/07/2024 05:51 AM