Demo 6 - 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 6.1 - Business rule to enforce selection of Level on Pet Trick records

  1. Navigate to the Power Apps maker portal https://make.powerapps.com.

  2. Select the Demo environment.
  3. Select Solutions from the left navigation pane.
  4. Select the PL400 Demos solution.
  5. Expand Tables.
  6. Select and expand the Pet Trick table.
  7. Select Business rules.

  8. Select + New business rule.
  9. Enter Trick Level for Business rule name.
  10. Show the options for Scope and select Entity.
  11. Select the Condition and enter Level for Display Name.
  12. In the rule select:

    • Trick for Field.
    • Contains data for Operator.
  13. Add a new rule by selecting + New.

  14. In Rule 2 select:

    • Level for Field.
    • Does not contain data for Operator.
  15. Select AND for Rule Logic.
  16. Select Apply.

  17. Select the Components tab.
  18. Drag the Set Business Required component to the right of the Condition.
  19. Enter Level required for Display Name.
  20. Select Level and Business Required.
  21. Select Apply.

  22. Select the Components tab.
  23. Drag the Show Error Message component to the right of Set Business Required.
  24. Enter Error for Display Name.
  25. Select Level and enter Level must be specified when a trick is selected.
  26. Select Apply.

  27. Select the Components tab.
  28. Drag the Set Business Required component to the right of the Condition.
  29. Enter Level not required for Display Name.
  30. Select Level and Not Business Required.
  31. Select Apply.
  32. Select Save.
  33. Select Activate.
  34. Select Activate.
  35. Close the Business rule editor window.
  36. Select Done.