Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/08/2024 11:37 AM
Hi,
In the following ImportAccountEntJson, I want to conditionally determine the URL. The flag for the condition is stored in the endpoint customproperty16. However, the job always fails when the 'endpoints' binding variable is used in the URL field. Is there anything wrong with the json? If not, is the 'endpoints' variable not available in this place? If it is not available, what is the workaround that uses a single connection for multiple endpoint?
The ImportAccountEntJson:
{
"accountParams": {
"connection": "app-connection",
"processingType": "SequentialAndIterative",
"acctEntMappings": {
"Role": {
"listPath": "",
"idPath": "InheritsFrom",
"keyField": "entitlementID"
}
},
"statusAndThresholdConfig": {
"accountThresholdValue": 1000,
"statusColumn": "customproperty3",
"activeStatus": ["N"],
"deleteLinks": false,
"correlateInactiveAccounts": true,
"inactivateAccountsNotInFile": "true"
},
"call": {
"call1": {
"callOrder": 1,
"listField": "Records",
"keyField": "customproperty4",
"makeProcessingStatus": false,
"http": {
"url": "${(endpoints.customproperty16 == null) ? connection.baseUrl + connection.nonPrivFilter : connection.baseUrl + connection.privFilter}",
"httpMethod": "GET",
"httpHeaders": {
"Authorization": "${access_token}"
}
},
"colsToPropsMap": {
"accountID": "PayrollNumber~#~char",
"name": "UserId~#~char",
"displayname": "UserName~#~char",
"customproperty1": "Email~#~char",
"customproperty2": "Win32Account~#~char",
"customproperty3": "ArchiveStatus~#~char",
"customproperty4": "RecordNumber~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO~#~char"
}
}
}
},
"entitlementParams": {
"processingType": "SequentialAndIterative",
"entTypes": {
"Role": {}
},
"disableDeletedEntitlements": true
},
"acctEntParams": {
"entTypes": {
"Role": {
"call": {
"call1": {
"processingType": "acctToEntMapping",
"http": {}
}
}
}
}
}
}
The error message:
Got Webservice API Response: [error:Error Illegal character in path at index 1: ${(endpoints.customproperty16 == null) ? connection.baseUrl + connection.nonPrivFilter : connection.baseUrl + connection.privFilter}]
04/08/2024 11:41 AM
endpoints object table is not exposed in ImportAccountEntJson