web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Business Rule not work...
Power Apps
Answered

Business Rule not working with attribute value populated from flow , pls suggest !

(0) ShareShare
ReportReport
Posted on by 190

My flow is running successfully , but when i apply business rule on the attribute value populated from flow , the business rule is nt working , its just a simple logic that says if attribute is yes then lock this field , any suggestions?

 

ps Note -my business rule has been created at entity level 

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    Hi @Kumar_bi ,

     

    • Could you share a screenshot of your business rule
    • What is the data type for the field to be locked
    • By "Flow", I assume you are referring to Power Automate?
  • Kumar_bi Profile Picture
    190 on at

    Thanks for replying @Amik  sir . 
    The data type is tested is both for "Single Line Of text" and Boolean Choice.
    Yes , its power automate flow 

    i have attached the screenshot sir for your ref .

    Kumar_bi_0-1689672357284.png

     

  • Verified answer
    Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    Hi @Kumar_bi ,

     

    I do not see anything obviously wrong with your Business Rule. I suspect it is only after you refresh your page will you be able to see the field has been successfully locked.

     

    For some of my model driven apps, I have approval flows and it would be ideal if one of my "Approval Status" fields automatically updated after the flow run successfully completed. I am aware some developers have worked out ways to refresh a page, but none of the solutions I have seen have been workable for my apps.

     

    What I would suggest, is that you discard the Business Rule, and write JavaScript with the same conditions as your Business Rule, and then save the script onto a web resource, and then load that web resource onto either a OnChange/OnLoad/OnSave event.

     

    If you do not know JavaScript, there are plenty of sample scripts you can find online. However, I must caveat that you will need to do a bit of learning in order to modify them to suit your needs.

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

     

  • Kumar_bi Profile Picture
    190 on at

    @Amik it would be a on change event , right sir ?

     

    Thanks for your inputs !

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    Hi @Kumar_bi - it would depend on your scenario.  If I want a field to be locked after I save a value in a different field, then yes I would use the OnSave or the OnChange event. If I want a field to be locked 24 hours after I have a saved a new record, then I would use an OnLoad event.

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard