Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Combine and/or operators in BPF condition

Posted on by 165 User Group Leader

Hello,

I been working on a business process flow lately and I noticed that once I use a condition with multiple rules, I could only use one of either operators: and , or.

I did my reseach and found that it was one of the BPF limitations.

I'm searching for a workaround to be able to combine both operators in one condition.

Example of condition: Field A or Field B and Field C and Field D or Field E

What can I possibly do to realize this?

  • Verified answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Combine and/or operators in BPF condition

    Hello,

    You can create a technical field (Yes/No) and which will hold the result of (Field A or Field B and Field C and Field D or Field E). However, you will need some JS code to implement this. Also, you need to use formContext.ui.process.reflow(true) to ensure that the BPF reflects the new value of your technical field.

  • Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Combine and/or operators in BPF condition

    Hi,

    You could create new custom Two Option field and create business rule to set this field either true or false.

    Define your conditions in Business rule which included combining two operator. Now use this new custom field in BFP as BPF condition.

    Please mark my answer verified if i were helpful

  • Suggested answer
    Wei Xiong Profile Picture
    Wei Xiong on at
    RE: Combine and/or operators in BPF condition

    Hi Nouhaila,

    Regarding this question, you're right. This is the current BPF limitations. I'm afraid that there's no other workaround available. 

    Thanks,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans