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
Select the "Dynamic" transition of the "check_group_type" action
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
Select the On Success Transition of add_group_member_graph
Add a Data Alias:
Key: feedback_message
Value: User was successfully added to Graph Group {{ CTX.group.displayName | d }}.
Select the On Failure Transition of add_group_member_graph
Add a Data Alias:
Key: feedback_message
Value: Failed to add User to Graph Group {{ CTX.group.displayName | d }}.
Step 3 Adding Feedback Message for Graph Remove Action
Select the On Success Transition of remove_group_member_graph
Add a Data Alias:
Key: feedback_message
Value: User was successfully removed from Graph Group {{ CTX.group.displayName | d }}.
Select the On Failure Transition of remove_group_member_graph
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
Select the On Success Transition of add_group_member_ex
Add a Data Alias:
Key: feedback_message
Value: User was successfully added to Exchange Online Group {{ CTX.group.displayName | d }}.
Select the On Failure Transition of add_group_member_ex
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
Select the On Success Transition of add_group_member_ex
Add a Data Alias:
Key: feedback_message
Value: User was successfully added to Exchange Online Group {{ CTX.group.displayName | d }}.
Select the On Failure Transition of add_group_member_ex
Add a Data Alias:
Key: feedback_message
Value: Failed to add User to Graph Group {{ CTX.group.displayName | d }}.
Publish the Workflow.
Action Item
Test the workflow and check the workflow results to find the feedback_message Data Alias as a context variable.