Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Business rule scope of entity, field changed by Power Automate, rule not applied to records

Posted on by 112

Greetings.

We have a business rule set to the scope of entity on the Opportunity entity.  The logic is to calculate estimated revenue based on a quantity unit of measure, requested quantity and a recommended price.  (four check conditions with a calculation of requested quantity of the UoM * recommended price).

When a record is opened and the condition value is met, the estimated revenue field is updated/calculated as expected.

The data fields used in the business rule are populated with a PowerAutomate process.  The process updates a Yes/No field, which in turn triggers a plug-in to locate a related quantity break record and return its price.  The sequence of steps within the PowerAutomate are to create quantity break records for an opportunity, update a "recalculate" binary field to Yes, which in turn triggers a plug-in to determine which quantity record's price to get and update the Opportunity record.

If the PowerAutomate updates the recalculate field, the plug-in is triggered and a recommended price is updated.  However, the business rule did not apply its logic to calculate the estimated revenue.

This is where it gets odd.  If we run an on-demand workflow against the records to set the recalculate field to Yes, everything works as expected.  The plug-in is triggered, a recommended price is updated and the business rule recalculates the estimate revenue. 

All of the fields are on the form, the rule works when a record is opened by a user (similar to scope of All Forms or a specific form).  Audit history shows the updates to the data fields used in the condition portion of the business rule, so we are confident the update from PowerAutomate is working.

Has anyone experienced business rules not getting processed when data is applied through a Power Automate?  In a non-technical summary, it is as if the Power Automate update initiated changes do not get "seen" by the business rule, but workflow initiated changes to the same field works as expected. 

Thanks for any assistance or suggestions you can offer!

Steve

  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 8,525 Super User 2024 Season 1 on at
    RE: Business rule scope of entity, field changed by Power Automate, rule not applied to records

    Hello Steve,

    Can you try to update the fields which will trigger the Business rule using the POSTMAN/REST Builder(Without opening of the record).

    Because if your Business rule will work after updating the fields from the Postman/REST Builder(Without opening of the record) then there will be some issue in the Power automated flow.

    Thank you,

    Amit Katariya

  • Suggested answer
    SBRO Profile Picture
    SBRO 28 on at
    RE: Business rule scope of entity, field changed by Power Automate, rule not applied to records

    Hi,

    The same issue here. I fixed it by using a Process (workflow) instead of a Business rule to enforce logic.  

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans