and more in a single search tool across platforms. Read the announcement here. |
06/29/2022 07:45 AM - edited 06/29/2022 07:46 AM
{
"results": [
{
"key": "~565117918",
"name": "Test Space 1",
"permissions": [
{
"id": 249135157,
"subjects": {
"group": {
"results": [
{
"type": "group",
"name": "site-admins",
"id": "a7f6277b-c40b-4cbf-bcbc-51925e91a7c9"
}
]
}
},
"operation": {
"operation": "administer",
"targetType": "space"
}
},
{
"id": 249135164,
"subjects": {
"group": {
"results": [
{
"type": "group",
"name": "site-admins",
"id": "a7f6277b-c40b-4cbf-bcbc-51925e91a7c9"
}
]
}
},
"operation": {
"operation": "delete",
"targetType": "page"
}
}
]
}
]
}
I want to add "SpacePermission" as child entitlement to "Space" entitlement.
My "entMappingParams" configuration looks like -
"entMappingParams": {
"processingType": "SequentialAndIterative",
"entTypes": {
"Space": {
"ent1KeyField": "entitlementID",
"call": {
"call1": {
"connection": "acctAuth",
"callOrder": 0,
"stageNumber": 0,
"http": {
"httpHeaders": {
"Authorization": "${access_token}"
},
"url": "https://#######/api/space?spaceKey=${entitlementID}&expand=permissions",
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "results[0].permissions",
"ent2IdPath": "id",
"ent2KeyField": "entitlementID",
"targetEntType": "SpacePermission",
"addDependentTask": true,
"removeDependentEntTask": true,
"mappingTypes": [
"ENT2"
]
}
}
}
}
}
06/29/2022 01:17 PM - edited 06/29/2022 01:31 PM
"addDependentTask": true, "removeDependentEntTask": true,
this applicable for ENTMAP hence remove from ENT2
ent1IdPath= results.key