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 Trig...
Power Apps
Answered

Business Rule Not Triggering in Canvas App

(1) ShareShare
ReportReport
Posted on by 110
Hi, 
i have added a business rule with scope Table
The rule is fairly simple (to set the default value of a single table column to 2. 
 
However, ion my Canvas App the issue of a new form based on the table does not pick up the default value, as below.
 
Any advice would be appreciated.
 
Many thanks, Craig 
 
Categories:
I have the same question (0)
  • Suggested answer
    TechFreak Profile Picture
    149 on at

    Hi Craig,

    If you’re working with a model-driven app, then your approach using a Business Rule with scope = Table is correct, and it should apply.

    However, the behavior you’re seeing typically comes down to how defaults are handled in Microsoft Dataverse and form rendering in Power Apps.

    Why the default is not appearing on the form

    Even in model-driven apps:


    • Business Rules do not always populate values on form load

    • They are triggered:

      • On field change

      • Or when conditions are evaluated after loa  

    •  

    So if your rule is simply:

    “Set column value = 2”

     

    …it may not fire immediately when creating a new record unless a trigger condition is met.

    Recommended Fixes

    ✔ Option 1: Add a condition to force execution

    Modify your Business Rule:


    • Condition: Field does not contain data

    • Action: Set field value = 2

    This ensures the rule runs when the form loads for a new record.

    ✔ Option 2: Use Dataverse Default Value (Best Practice)

    Instead of relying on a Business Rule:


    • Go to the column in Dataverse

    • Set Default Value = 2

    •  

    This guarantees:


    • Value is set on record creation

    • Works across forms, APIs, and integrations

    ✔ Option 3: Use JavaScript (if immediate UI population is required)

    If you want the value to appear instantly on form load:

     
    function setDefaultValue(executionContext) {
    var formContext = executionContext.getFormContext();
    var field = formContext.getAttribute("yourcolumnname");
    
    if (field && field.getValue() === null) {
    field.setValue(2);
    }
    }
     
     

    Then register it on Form OnLoad.

    Summary


    • Business Rules (Table scope) don’t always apply immediately on form load

    • They require a trigger condition

    • Best practice is to use Dataverse column default value for simple defaults

    •  

     

    If this resolves your issue, please mark the answer as accepted and give it a like. It helps others in the community and supports knowledge sharing. Thanks!

  • Verified answer
    11manish Profile Picture
    2,374 on at
    Business Rules with table scope do not apply default values in Canvas Apps because they execute server-side after the record is saved, not during form initialization.
     
    To set default values in a Canvas App, you must use Power FX in the control’s Default property or handle it during form submission.
     
    Business Rules can still be used for backend enforcement but not for UI behavior in Canvas Apps.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 842

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 402

Last 30 days Overall leaderboard