Implementing Error Handling with Feedback Messages

While it's easy for us, as the builders, to spot errors in the workflow execution results, it's much harder for someone filling out the form.

Module Overview

Looking at every possible "ending point", we'll want to communicate to the person that submits the request form what happened. We'll do this via email, but first we need a handy way to get those feedback messages describing what happened.

Video (5:18 Minutes)

Log into Rewst and complete the following steps

Step 1: Adding a Feedback Message for Dynamic Groups
  1. Select the "Dynamic" transition of the "check_group_type" action

  2. Add a Data Alias:

    • Key: feedback_message

    • Value: The Group{{ CTX.group.displayName | d }}is a Dynamic Group and can not be directly modified. You will need to edit its membership Rules to modify this.

Step 2: Adding Feedback Messages for Graph Add Action
  1. Select the On Success Transition of add_group_member_graph

  2. Add a Data Alias:

    • Key: feedback_message

    • Value: User was successfully added to Graph Group {{ CTX.group.displayName | d }}.

  3. Select the On Failure Transition of add_group_member_graph

  4. Add a Data Alias:

    1. Key: feedback_message

    2. Value: Failed to add User to Graph Group {{ CTX.group.displayName | d }}.

Step 3 Adding Feedback Message for Graph Remove Action
  1. Select the On Success Transition of remove_group_member_graph

  2. Add a Data Alias:

    • Key: feedback_message

    • Value: User was successfully removed from Graph Group {{ CTX.group.displayName | d }}.

  3. Select the On Failure Transition of remove_group_member_graph

  4. Add a Data Alias:

    • Key: feedback_message

    • Value: Failed to remove User from Graph Group {{ CTX.group.displayName | d }}.

Step 4: Adding Feedback Messages for Exchange Online Add Actions
  1. Select the On Success Transition of add_group_member_ex

  2. Add a Data Alias:

    • Key: feedback_message

    • Value: User was successfully added to Exchange Online Group {{ CTX.group.displayName | d }}.

  3. Select the On Failure Transition of add_group_member_ex

  4. Add a Data Alias:

    • Key: feedback_message

    • Value: Failed to add User to Exchange Online Group {{ CTX.group.displayName | d }}.

Step 5: Adding Feedback Messages for Exchange Online Remove Actions
  1. Select the On Success Transition of remove_group_member_ex

  2. Add a Data Alias:

    • Key: feedback_message

    • Value: User was successfully removed from Exchange Online Group {{ CTX.group.displayName | d }}.

  3. Select the On Failure Transition of remove_group_member_ex

  4. Add a Data Alias:

    • Key: feedback_message

    • Value: Failed to remove user from Exchange Online Group {{ CTX.group.displayName | d }}.

  5. Publish the Workflow.

Action Item

Test the workflow and check the workflow results to find the feedback_message Data Alias as a context variable.

Go to Wrap Up the Lesson:

Last updated