Skip to content · Zum Inhalt

Give hints with a message

A message action informs the user and lets the change through. Maria Lopez wants the order desk to check stock when a line asks for more than 100 units. She writes the message MSG-BIGQTY and the rule set SALES-BIGQTY, which runs after the quantity has been changed.

Write the message

  1. Search for Messages and choose New.
  2. Fill in Code MSG-BIGQTY, Description Large quantity and Message Text: Order [37:3] asks for [37:15] units of item [37:6]. That is a large quantity: please check stock before you confirm the date.

The message MSG-BIGQTY

Create the rule

  1. On Business Rules, choose New: Code SALES-BIGQTY, Name Large quantity hint.
  2. In Rule Details: Description More than 100 units; Details.
  3. On the rule card: Trigger OnModify After, Trigger Field [37:15].
  4. In Scenarios & Conditions: Type Condition, Condition >100, Validate Field [37:15].
  5. Reopen the card, then in Actions: Type Message (answer Yes), Code MSG-BIGQTY.
  6. Turn on Enable on the rule card and on the rule set, and add SALES-BIGQTY to the rule group ALL.

The rule card of SALES-BIGQTY: after modify, quantity more than 100, message MSG-BIGQTY

What the order desk sees

  1. Tom Becker enters Quantity 150 on line 10000 of S-ORD101004.
  2. A message appears: Business Rule: SALES-BIGQTY.10000 - Order S-ORD101004 asks for 150 units of item 2000-S. That is a large quantity: please check stock before you confirm the date. He chooses OK.
  3. The quantity 150 is saved - a message never stops the change.

The large-quantity message on S-ORD101004

Note: Before runs the rule before the change is saved - use it for errors and confirmations that must be able to stop the change. After runs it once the change is saved - use it for messages, notifications and e-mails.

Other actions

The same steps create the other action types; each has its own list and card: Confirmations (a question with follow-up actions If Yes and If No), Notifications, URLs, Emails (To, Cc, Bcc, Subject, Email Body, Attachments), Assignments (set field values), Inserts (create a record), Custom Actions and Power Automate Flows.