Leveraging Intelligent Recommendations for Operational Transformation. AMS Partners click HERE | EMEA/APJ Partners click HERE |
07/19/2024 07:24 AM - edited 07/19/2024 07:25 AM
Hi,
We have a requirement to import 2 entitlement types and their entitlements through the REST connector:
I am able to import entitlements from both entitlement types but the parent-child mapping is not getting populated. I am fetching Organisation and Organisation Type entitlements from multiple endpoints. The mapping between Organisation and Organisation Type is present in the Organisation API itself which I use for importing the Organisation entitlements. There is no separate API for the parent-child entitlement mapping.
Please find below some of the configurations that I've done as of now:
entMappingParams:
"entMappingParams": {
"processingType": "SequentialAndIterative",
"entTypes": {
"OrganisationType": {
"ent1KeyField": "entitlementID",
"call": {
"call1": {
"connection": "acctAuth",
"callOrder": 0,
"stageNumber": 0,
"http": {
"httpHeaders": {
"Accept": "application/json",
"x-api-key": "xxxxxxx"
},
"url": "API Endpoint 1",
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "results",
"ent1IdPath": "organisationType_id",
"ent2IdPath": "id",
"ent2KeyField": "entitlementID",
"targetEntType": "Organisation",
"mappingTypes": ["ENT2"]
},
"call2": {
"connection": "acctAuth",
"callOrder": 1,
"stageNumber": 0,
"http": {
"httpHeaders": {
"Accept": "application/json",
"x-api-key": "xxxxxx"
},
"url": "API Endpoint 2",
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "results",
"ent1IdPath": "organisationType_id",
"ent2IdPath": "id",
"ent2KeyField": "entitlementID",
"targetEntType": "Organisation",
"mappingTypes": ["ENT2"]
}
}
}
}
}
Organisation Type Sample API Response:
{
"previous": null,
"next": null,
"count": 2,
"results": [
{
"id": "brwbwvwvw",
"codeSet": "organisationType",
"code": "OrgType1"
},
{
"id": "afawewqvq",
"codeSet": "organisationType",
"code": "OrgType2"
}
]
}
Organisation Sample API Response:
{
"previous": null,
"next": null,
"count": 3,
"results": [
{
"id": "vwrbwfbwf",
"codeSet": "organisation",
"code": "Org1",
"organisationType": "OrgType1",
"organisationType_id": "brwbwvwvw"
},
{
"id": "abjteggw",
"codeSet": "organisation",
"code": "Org2",
"organisationType": "OrgType2",
"organisationType_id": "afawewqvq"
},
{
"id": "hrwwvqqv",
"codeSet": "organisation",
"code": "Org3",
"organisationType": "OrgType1",
"organisationType_id": "brwbwvwvw"
}
]
}
Please let me know if I am missing something which can help me import this parent-child entitlements mapping. Any sort of help would be greatly appreciated!
Thanks & Regards,
Akshar
07/19/2024 05:27 PM
Refer
07/19/2024 10:40 PM
Thank you for sharing @rushikeshvartak ! I had gone through these articles earlier, but somehow it didn't work for me.
07/21/2024 08:46 PM
Could you kindly provide a detailed snapshot of the information extracted from the logs, encompassing errors and other pertinent functionality details encountered during the execution of this process? Your assistance in furnishing this information would greatly aid in the analysis and resolution of any issues .
‼️‼️⚠️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.⚠️‼️‼️
07/21/2024 11:01 PM - edited 07/21/2024 11:06 PM
Hi @rushikeshvartak ,
Please find attached the logs from the time when I ran the entitlements import job. Connection name renamed to "OrganisationDataImport", Endpoint name renamed to "Organisations Data".
I couldn't find any error specific to the import or entitlement hierarchy mapping. Please do let me know if you find something, or if you'd like me to try something else.
Thanks & Regards,
Akshar
07/22/2024 09:40 AM
Remove deleteAccEntForActiveAccounts"" : true"
07/22/2024 10:36 AM
Hi @rushikeshvartak,
I removed "deleteAccEntForActiveAccounts" from STATUS_THRESHOLD_CONFIG but still no luck 😞
07/22/2024 10:38 AM
Also just another point, may or may not make a difference, but in this endpoint we only want to import entitlements, not accounts
08/05/2024 08:39 PM
Any idea what might be the issue?