Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
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,198 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,962 Moderator 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans