JSON Expression to get number of added entitlement changes

:bangbang: Please be sure you’ve read the docs and API specs before asking for help. Also, please be sure you’ve searched the forum for your answer before you create a new topic.

I am working on a NCD workflow and need a basic check to see how many entitlementChanges were added or removed. I have tried various version but the numeric comparison in the Workflow works as long as there is one (1) entitlement added / removed. I have tried

[
{
“added”: [
{
“id”: “db41b6b04c2c3a25bf819843926ff5fa”,
“name”: “Inactive User”,
“owner”: null,
“value”: “00e8A000000KsLsQAK”
}
],
“attributeName”: “ProfileId”,
“removed”: [
{
“id”: “477f7bebada13da58a7984c2427b3675”,
“name”: “Access Control - User”,
“owner”: null,
“value”: “00e50000000wjkjAAA”
}
]
},
{
“added”: [
{
“id”: “051725e00fb1376eaa68d466e7bc4644”,
“name”: “ACHDisputesTeamMembers”,
“owner”: null,
“value”: “00G2J000003cmGfUAI”
}
],
“attributeName”: “PublicGroups”,
“removed”:
},
{
“added”: [
{
“id”: “344e4b2eff10351aaa945abf0b8359a5”,
“name”: “Operations”,
“owner”: null,
“value”: “00E50000001HtIwEAK”
}
],
“attributeName”: “Role”,
“removed”:
}
]

I have tried $.trigger.entitlementChanges[*].added.length() and this works when there is 1 add and/or 1 remove.

In my workflow I have tried different combinations for greater/less than and equal to.

What is a better way of identifying if and how many I have added/remove type native changes there are?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.