Demo setup instructions 5 - Business rules
Objective: In this demo, you will show how to create business rule on the Pet trick table and columns created in the previous demos.
Task 5.1 - Business rule to enforce selection of Level on Pet Trick records
-
Navigate to the Power Apps Maker portal
https://make.powerapps.com
. - Select the Demo environment.
- Select Solutions from the left navigation pane.
- Select the PL400 Demos solution.
- Expand Tables.
- Select and expand the Pet Trick table.
-
Select Business rules.
- Select + New business rule.
- Enter
Trick Level
for Business rule name. - Show the options for Scope and select Entity.
- Select the Condition and enter
Level
for Display Name. -
In the rule select:
- Trick for Field.
- Contains data for Operator.
-
Add a new rule by selecting + New.
-
In Rule 2 select:
- Level for Field.
- Does not contain data for Operator.
- Select AND for Rule Logic.
-
Select Apply.
- Select the Components tab.
- Drag the Set Business Required component to the right of the Condition.
- Enter
Level required
for Display Name. - Select Level and Business Required.
-
Select Apply.
- Select the Components tab.
- Drag the Show Error Message component to the right of Set Business Required.
- Enter
Error
for Display Name. - Select Level and enter
Level must be specified when a trick is selected
. -
Select Apply.
- Select the Components tab.
- Drag the Set Business Required component to the right of the Condition.
- Enter
Level not required
for Display Name. - Select Level and Not Business Required.
- Select Apply.
- Select Save.
- Select Activate.
- Select Activate.
- Close the Business rule editor window.
- Select Done.