and more in a single search tool across platforms. Read the announcement here. |
07/14/2022 03:37 AM - edited 07/14/2022 03:39 AM
Hi,
I am working on a REST based connector and want to import "entitlements only" from this target. Here's my API response -
[
{
"appName": "TestApp",
"appId": "6bd15438-97e4-4dac-9c65-18f0b592ab86",
"riskLevel": "MEDIUM",
"status": "active"
}
]
My "ImportAccountEntJSON" looks like -
{
"accountParams": {},
"entitlementParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"entTypes": {
"Application": {
"entTypeOrder": 0,
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "http://11.222.33.44/rest/certification/v1/apps?detailed=true",
"httpHeaders": {
"Authorization": "${access_token}",
"Namespace": "24:0",
"Content-Type": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "appId~#~char",
"entitlement_value": "appName~#~char"
},
"disableDeletedEntitlements": true
}
}
}
}
},
"acctEntParams": {}
}
The Data Import (Access) job returns "success" but no entitlements are imported.
Any help to resolve this issue is much appreciated.
Solved! Go to Solution.
07/14/2022 07:03 AM
Whats full response? Did you check if you need "listField"?
07/14/2022 08:08 AM
This is the full response. There is nothing in response to specify as list field.
07/14/2022 07:14 AM
Try "Accept": "application/json" instead of "Content-Type": "application/json"
07/14/2022 08:10 AM
"Content-Type": "application/json" is required as per the target API spec. Without that header, API returns error on postman requests as well.
I did try using "Accept": "application/json" but no success in importing the entitlement.
07/14/2022 10:41 AM
Please share debug logs
07/15/2022 07:07 AM
This issue is now resolved. I was using "httpMethod": "POST" in connection json. Changing that to "httpMethod": "GET" made the connector to import data successfully.
Thanks for chiming in to help.
02/22/2023 02:10 AM
Hi uwaraj,
Even I am facing same kind of issue. I have tried to modify the httpmethod in connection JSON. That is not working.
In my case, In saviynt logs, i could see the API response with entitlement name. But it not getting reconcile to saviynt.
Can any one help me on this
Thanks,
Sankar