add two condition in sysFilter | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ParthaSarathy

Hi @kumar_27 ,

Use boolOperator="OR" inside the condition tag.

Example, Below sysFilter will allow read access to the data for only the operators who have either admin or testGroup named rights assigned,

 

<element autopk="true" label="My Schema" name="mySchema"> <sysFilter name="readAccess"> <condition boolOperator="OR" enabledIf="hasNamedRight('admin')=true" expr="TRUE"/> <condition enabledIf="hasNamedRight('testGroup')=false" expr="FALSE"/> </sysFilter>

Reference document:

https://experienceleague.adobe.com/docs/campaign-classic/using/configuring-campaign-classic/schema-reference/elements-attributes/condition.html?lang=en

  • boolOperator (string): if several <conditions> are defined within the same <sysfilter> element, this attribute lets you combine them. By default, the logical link is between <condition> elements is “AND”. The “@boolOperator” attribute lets you combine “OR” and “AND” type links.

 

1 reply

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
December 24, 2023

Hi @kumar_27 ,

Use boolOperator="OR" inside the condition tag.

Example, Below sysFilter will allow read access to the data for only the operators who have either admin or testGroup named rights assigned,

 

<element autopk="true" label="My Schema" name="mySchema"> <sysFilter name="readAccess"> <condition boolOperator="OR" enabledIf="hasNamedRight('admin')=true" expr="TRUE"/> <condition enabledIf="hasNamedRight('testGroup')=false" expr="FALSE"/> </sysFilter>

Reference document:

https://experienceleague.adobe.com/docs/campaign-classic/using/configuring-campaign-classic/schema-reference/elements-attributes/condition.html?lang=en

  • boolOperator (string): if several <conditions> are defined within the same <sysfilter> element, this attribute lets you combine them. By default, the logical link is between <condition> elements is “AND”. The “@boolOperator” attribute lets you combine “OR” and “AND” type links.

 

 ~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups