Adding Other Parent Workflow Actions

Finishing up our Parent workflow

Module Overview

Before testing our sub-workflow, we'll add the necessary actions to send an email to the user who filled out the form. This ensures they receive confirmation or relevant information about the workflow's execution via the feedback_message.

Video (11:55 Minutes)

Log into Rewst and complete the following steps

Step 1: Identifying the User Who Filled Out the Form
  1. Add the Microsoft Graph Get User action in the parent workflow

  2. Connect the On Success transition to update_groups

  3. Select the action

  4. Rename the action "get_user"

  5. Select the On Success transition of get_user

  6. Create a Data Alias

    1. Name: target_user

    2. Value: {{ RESULT.result.data.value }}

Step 2: Collecting Feedback Messages
  1. Add a noop below update_groups

  2. Connect the On Success transition of update_groups to the noop.

  3. Rename the noop "list_feedback_messages"

  4. Create a Data Alias

    1. Name: feedback_message_list

    2. Value:

      {{- 
         [
            message.result.feedback_message
            for message in TASKS.update_groups.collected_results
         ]
      -}}
Step 3: Sending the Email of Feedback Messages
  1. Add the sendmail action below list_feedback_messages

  2. Connect the On Success transition from list_feedback_messages to sendmail.

  3. Rename the action to send_mail

  4. Select send_mail

  5. Configure send_mail

    1. Recipient: {{ CTX.user.username }}

    2. Subject: Your request to update Microsoft Groups for the User {{ CTX.target_user.displayName | d }}.

    3. Title: Your request to update Microsoft Groups for the User {{ CTX.target_user.displayName | d }}.

    4. Message: Here are the results of your request to update Microsoft Groups for the User {{ CTX.target_user.displayName | d }}.

      {{ CTX.feedback_message_list | join("\n* "}}

Action Item

With actions that implement With Items, test the Collected Results and use Publish Result As to simplify managing collected_results of actions.

Last updated