Project

Power Automate Flow for HSSE Risk Assessment

Implementing an automated process to manage HSSE Risk Assessments efficiently.

Empty image or helper icon

Power Automate Flow for HSSE Risk Assessment

Description

This project aims to create a Power Automate flow for handling HSSE Risk Assessments based on responses from a Microsoft Form. The process will classify the risk level based on user inputs and automatically generate and send a PDF report via email while archiving the responses. The flow will cater to various operational modes and their respective branching logic.

The original prompt:

BEST QUESTION I need help developing a Power Automate Flow. I have very little experience with Power Automate. Please tell me step by step how to build a Power Automate flow based on the following. Please explain it on a level of someone with no experience with Power Automate and for every step you tell me to do, tell me the reason why you are telling me to do it and give definitions of power automate terms and functions you have me to do as well. Here are the details of the flow I need: I have already built a Microsoft Form called SPM Contractor HSSE Risk Assessment. It has 10 questions. Here they are listed below, and in parentheses next to each one I will tell you the type of Microsoft Forms question it is and what the options are under each and the branching details if applicable. Everything in parenthesis are instructions and information for you. The form has branching that is based on 3 modes: Mode 1, Mode 2, and Mode 3, and one last option of, “Multi-Mode. All the selections and input typed by the responders will have to be printed out on a PDF along with other pieces of information. The PDFs will be emailed and archived in a folder. . Each has a different path and questions. Here are the questions of the Microsoft form entitled SPM Contractor HSSE Risk Assessment: 1. Type the name of this scope (This is a text question). 2. Please provide a short description of the scope of work to be performed by the contractor (This is a text question). 3. What is the Contract Mode of the scope of work to be performed? (This is a choice box and has branching. The choices are below for this question) Mode 1 a. - (This one has branching that goes to the following choice check box options The question for this branch option is 4 below, but it is for “Mode 1 above”. The answers below will be used in the flow to determine the HSSE Risk Level.): 4. Please check which activities may be part of the scope of work to be performed by the contractor? Check if answer is 'Yes'. leave blank if 'No'. Here are the options for this one: Will work activity require a Hot Work Permit? (Below are the questions the user has to check the boxes for if the answer is yes, and they leave the box blank if the answer is “No”. (I will need the responses to these questions in the flow later. They will determine the level of HSSE Risk Level. If the box is checked for each of the questions below in section 4, it will correlate to an HSSE Risk Level. The HSSE Risk Levels are High, Medium, and Low. If no box is selected for the questions below in section 4, then the HSSE Risk Level is Low. If the HSSE Risk Level is low, then put on the output PDF, “HSSE Risk Level: LOW”, ARCHIVE IT, AND EMAIL RECIPIENTS. If a box is checked in the questions below for section 4, then HSSE Risk Level will be either HIGH or LOW. The way you will tell if each questions is HIGH or LOW is based upon whether HIGH or LOW is in brackets like these [HIGH] or [LOW] at the end of each question. If you find at least one question in the section 4 list below that has [HIGH] below then the HSSE Risk Level for the entire form is HIGH, and you will print on the PDF output: HSSE Risk Level: HIGH) Will work activity require a Hot Work Permit within a Process Unit? [HIGH] Will work activity be located above 6 feet requiring the use fall protection equipment? [HIGH] Will work involve Confined Space Entry / Restricted access or egress / trenching? [HIGH] Other than driving to and from a job site, are there other potential hazards associated with vehicle movement while on company property? [MED] Will work require process isolation? [HIGH] Will work involve heavy lifting or hoisting controlling of a Suspended Load? [HIGH] Will gas testing be required before or during the work activity? [MED] Will work activity require obtaining authorization before overriding or disabling safety critical equipment? [MED] Will work activity be within a live Process Area Flare Zone? [MED] Will work involve the use of tools or equipment that have the potential to result in serious harm or injury to self or others? [MED] Will work activity be near other people that may result in serious harm or injury? [MED] Will the work activity require the use of specialized tools or equipment? e.g. High-pressure water or hydraulic systems. [MED] Will the work activity require the use of Respiratory Protective Equipment? [MED] Will any of the following hazards be present during the work activity: Pressure (+/-), Flammable Materials, Toxics, Thermal (hot/cold), Radioactive Sources. [MED] There are other potentially hazardous activities not listed above. (All of the questions above are check boxes that at least one must be check. Once they are checked they go to Section 5 which is a text box. Section 5 is below). Section 5. Are there other potentially hazardous activities not listed above? (The answer to this one will be a text answer that needs to be output on the PDF. Put on the PDF the following statement: Other potentially hazardous activities not described here. Then list what the respondent typed in the text box) Mode 2

  • (This option, Mode 2, when selected branches to 4 below and then question 5. Both of these and their responses will need to be printed on the output PDF). 4. If you have already identified some prospective suppliers to perform this scope, please list them below (This is a text box question. I will need the question 4 and the text box response of this question put in the output which is a pdf. The other wording in the PDF will be, Mark, this new scope is a Mode 2. Below is the response from “PERSONS NAME”. Please determine if this is HIGH, MED, or LOW risk).
  1. Please describe other potentially hazardous activities not listed above. If N/A, hit the submit button below. (This question and response will need to be printed on the output PDF. This is a text question in Microsoft Forms.)

    Mode 3

– (This option, Mode 3, when selected branches to 4 below. 4 below has check boxes. I will need to know which ones in 4 below are checked off by the person that responded. The ones that are check off will be used to determine the HSSE Risk Level which will then be output in the pdf). 4. Does the scope of work to be performed involve any of the circumstances described below? (I will need the check box response of this question put in the output which is a pdf, and you will have to use it to determine what the output will be. Each check box question below is separated.) Transportation of people (including Shell and/or contractor personnel) and/ or goods is the primary scope provided (e.g. . freight forwarding, bussing, air transportation, etc.).

The scope includes Shell personnel performing physical work or activities at a 3rd party location (e.g. active training, HSSE risk activities at third party facilities e.g.

Scope taking place in a Contractor operated facility e.g. warehouse, workshop, etc., that is estimated to make up more than 50% of the facility's capacity at any one time.

Scope taking place in a public location [e.g. public roadway, etc.].

None of the above are anticipated to be included in the scope of work. (If this one is selected, then it is HSSE Risk Level, LOW. LOW risk levels get archived and emailed to the recipients.)

(If one of the above for this Mode 3 is selected, the form then goes to Section 5 below which is a text box if there are prospective suppliers. If there are not it can be left blank. If text is input then it needs to be put on the output PDF.

Section 5 If you have already identified some prospective suppliers to perform this scope, please list them below.

(This Mode 3 option now goes to Section 6 below which is a text box. The answers given by the responders will need to become output in the PDF output at the end of the flow)

Section 6 Please describe other potentially hazardous activities not listed above. If N/A, hit the submit button below. (If any text is listed here, it must be placed in the PDF document.

Multi-Mode (This is another option. If this one is chosen by the responder, the responder will have to select at least one of the questions in sections 4, 5, 6, and 7 below. The selections that the responder clicked will need to be emailed to Mark.Kennedy2@shell.com ).

Section 4 What activities may take place as part of the scope of work to be performed by the contractor on-site? Check if answer is 'Yes'. leave blank if 'No')

Will work activity require a Hot Work Permit?

Will work activity require a Hot Work Permit within a Process Unit?

Will work activity be located above 6 feet requiring the use fall protection equipment?

Will work involve Confined Space Entry / Restricted access or egress / trenching?

Other than driving to and from a job site, are there other potential hazards associated with vehicle movement while on company property?

Will work require process isolation?

Will work involve heavy lifting or hoisting controlling of a Suspended Load

Will gas testing be required before or during the work activity?

Will work activity require obtaining authorization before overriding or disabling safety critical equipment?

Will work activity be within a live Process Area Flare Zone?

Will work involve the use of tools or equipment that have the potential to result in serious harm or injury to self or others?

Will work activity be near other people that may result in serious harm or injury?

Will the work activity require the use of specialized tools or equipment? e.g. High-pressure water or hydraulic systems.

Will the work activity require the use of Respiratory Protective Equipment?

Will any of the following hazards be present during the work activity: Pressure (+/-), Flammable Materials, Toxics, Thermal (hot/cold), Radioactive Sources. 5 Do any of the offsite activities involve any of the circumstances described below? Check any activities that form, or may form, part of the expected scope of work.

Transportation of people (including Shell and/or contractor personnel) and/ or goods is the primary scope provided (e.g. . freight forwarding, bussing, air transportation, etc.).

The scope includes Shell personnel performing physical work or activities at a 3rd party location (e.g. active training, HSSE risk activities at third party facilities (e.g.)

Scope taking place in a Contractor operated facility (e.g. warehouse, workshop, etc.), that is estimated to make up more than 50% of the facility's capacity at any one time.

Scope taking place in a public location (e.g. public roadway, etc.).

None of the above are anticipated to be included in the scope of work. 6 If you have already identified some prospective suppliers to perform this scope, please list them below. If no, please leave blank. 7 Please describe other potentially hazardous activities not listed above. If N/A, hit the submit button below. (All of the above responses for Multi-Mode will need to be printed on the output PDF)

Introduction to Power Automate and Microsoft Forms

Overview

This section provides an introduction to using Power Automate and Microsoft Forms to implement an automated process for managing HSSE Risk Assessments efficiently.

Microsoft Forms Setup

Step 1: Create a Microsoft Form

  1. Navigate to Microsoft Forms:

    • Go to https://forms.office.com/.
  2. Create a New Form:

    • Click on "New Form".
  3. Design the Form:

    • Provide a title, e.g., "HSSE Risk Assessment".
    • Add relevant fields such as:
      • Name (Text Field)
      • Department (Choice Field)
      • Date (Date Field)
      • Risk Description (Long Text Field)
      • Severity (Choice Field)
      • Likelihood (Choice Field)
      • Mitigation Measures (Long Text Field)
  4. Preview and Share the Form:

    • Click on "Preview" to see how the form looks.
    • Click on "Share" to get a link to distribute the form to respondents.

Power Automate Setup

Step 2: Create a Flow in Power Automate

  1. Navigate to Power Automate:

    • Go to https://flow.microsoft.com/.
  2. Create a New Flow:

    • Click on "Create" and select "Automated cloud flow".
  3. Set the Trigger:

    • Search for "Microsoft Forms" in the trigger options.
    • Select "When a new response is submitted".
  4. Select the Form:

    • Choose the HSSE Risk Assessment form created in Microsoft Forms.

Step 3: Add Actions to the Flow

  1. Get Response Details:

    • Add a new step and search for "Microsoft Forms".
    • Select "Get response details".
    • Configure it with the form ID and the response ID from the trigger.
  2. Create an Item in SharePoint (or other storage system):

    • Add a new step and search for "SharePoint".
    • Select "Create item".
    • Configure it with the relevant site address and list name.
    • Map fields from the form response to the corresponding columns in the SharePoint list.

Step 4: Notifications and Approvals (Optional)

  1. Send an Email Notification:

    • Add a new step and search for "Office 365 Outlook".
    • Select "Send an email".
    • Configure the email to notify responsible individuals about the new risk assessment submission.
  2. Approval Process:

    • Add a new step and search for "Approvals".
    • Configure the approval process by assigning the approval task to the appropriate personnel.

Example Flow Configuration

  1. Trigger:

    • When a new response is submitted (Microsoft Forms)
  2. Action:

    • Get response details (Microsoft Forms)
      • Form ID: HSSE Risk Assessment
      • Response ID: Response ID
  3. Action:

    • Create item (SharePoint)
      • Site Address: [Your SharePoint Site URL]
      • List Name: [Your SharePoint List Name]
      • Title: [Risk Description from Forms]
      • Columns:
        • Name: [Name from Forms]
        • Department: [Department from Forms]
        • Date: [Date from Forms]
        • Severity: [Severity from Forms]
        • Likelihood: [Likelihood from Forms]
        • Mitigation Measures: [Mitigation Measures from Forms]
  4. Optional Action:

    • Send an email (Office 365 Outlook)
      • To: [Recipient Email Address]
      • Subject: "New HSSE Risk Assessment Submitted"
      • Body: "A new HSSE Risk Assessment has been submitted. Please review it at your earliest convenience."
  5. Optional Action:

    • Start and wait for an approval (Approvals)
      • Assigned to: [Approver Email Address]
      • Title: "Review HSSE Risk Assessment"
      • Details: "A new risk assessment has been submitted for your review and approval."

Conclusion

By following these steps, you can create an efficient automated process for handling HSSE Risk Assessments using Microsoft Forms and Power Automate. Ensure continuous monitoring and refining of the process to adapt to any organizational changes or improvements in risk assessment methodology.

Building the Form and Understanding Branching

Part 2 of Automating HSSE Risk Assessments

This section will focus on creating a form for HSSE risk assessments using Microsoft Forms and handling branching logic to streamline the automated process.

Microsoft Forms: Creating the Risk Assessment Form

  1. Access Microsoft Forms:

    • Open Microsoft Forms.
    • Click on "New Form" to start creating a fresh questionnaire.
  2. Form Questions:

    • Title: "HSSE Risk Assessment"
    • Add various sections based on the required risk assessment categories. Below is a sample structure:
  3. Sample Questions:

    question: "What type of risk are you assessing?"
    type: "Choice"
    choices: ["Operational", "Environmental", "Health & Safety", "Security"]
    question: "Describe the potential hazard."
    type: "Text"
    question: "What is the likelihood of the risk occurring?"
    type: "Choice"
    choices: ["Rare", "Unlikely", "Possible", "Likely", "Almost Certain"]
    question: "What would be the impact of this risk on operations?"
    type: "Choice"
    choices: ["Negligible", "Minor", "Moderate", "Major", "Severe"]

Branching Logic

To make the form dynamic and ensure respondents only see relevant questions, use conditional branching.

  1. Adding Branching:

    • Select a question where you want branching to begin.
    • Click on "More options" (...) and choose "Add Branching."
  2. Implementing Branching Logic:

    • Example:
      • From the earlier example, if "What type of risk are you assessing?" is set to "Operational":

        IF choice == "Operational":
            GO TO "Describe the operational hazard."
        ELSE IF choice == "Environmental":
            GO TO "Describe the environmental hazard."
        ELSE IF choice == "Health & Safety":
            GO TO "Describe the health & safety hazard."
        ELSE IF choice == "Security":
            GO TO "Describe the security hazard."
  3. Complex Branching:

    • For further questions based on previous answers:
    question: "What mitigation measures are in place?"
    type: "Text"
    branch_from_previous:
      IF choice in {"Moderate", "Major", "Severe"}:
          GO TO "What mitigation measures are in place?"
      ELSE:
          GO TO "How frequently is this risk reassessed?"

Integrating with Power Automate

After structuring the form and setting appropriate branching, the responses can be automated using Power Automate.

  1. Automated Workflow:
    • Trigger: Microsoft Forms - "When a new response is submitted"
    • Action: Get response details
    • Next Actions: Define custom actions based on response content, e.g.,
      IF response("Likelihood of the risk occurring") == "Likely" OR response("Likelihood of the risk occurring") == "Almost Certain":
          SEND alert_email("Alert", response_details)
      ELSE:
          LOG response_details

Using the above structure, you can efficiently create a dynamic risk assessment form with condition-based branching, and set up an automated workflow using Power Automate to manage and respond to the collected data.

Creating and Configuring the Power Automate Flow for HSSE Risk Assessments

Step 1: Create the Flow

  1. Create a new Automated Flow:

    • Open Power Automate.
    • Click on Create in the navigation bar.
    • Select Automated flow.
  2. Define the trigger:

    • Name your flow, e.g., "HSSE Risk Assessment Workflow".
    • For the Trigger, search for "Microsoft Forms".
    • Select the trigger: "When a new response is submitted".
  3. Select the form:

    • Choose your HSSE Risk Assessment form from the list of available forms.

Step 2: Add Actions to Your Flow

2.1 Initialize Variables (Optional - If further computation or checking is needed)

  • Add a New Step -> Initialize variable.
    • Name: riskLevel
    • Type: String
    • Value: (Optional based on your Form fields)

2.2 Get Response Details

  • Add a New Step -> Get response details.
    • Form ID: Select your form.
    • Response ID: Use the dynamic content Response ID from the trigger.

2.3 Conditional Branching (Risk Level Evaluation)

  • Add a New Step -> Condition.
    • Condition: Check the risk assessment value from response details.
    • For example, if we assume a "Risk Level" field is being captured:
      • Risk Level greater than or equal to 5

If Yes (High Risk Level):

  • Add the necessary actions you require, for example:

    • Send an Email:
      • To: responsible_person@company.com
      • Subject: Urgent: High Risk Assessment
      • Body: Include dynamic content like Risk Level, Response Details.
  • Create a Task in Planner:

    • Plan Id: Select your plan.
    • Title: HSSE Risk Assessment Alert
    • Assigned to: Responsible person
    • Details: Include dynamic content from the form.

If No (Low Risk Level):

  • Send a Confirmation Email to the Reporter:
    • To: Use dynamic content for respondent’s email.
    • Subject: HSSE Risk Assessment Submitted
    • Body: Thank you for your submission. We'll review the assessment...

Step 3: Review and Test the Flow

  • Save your Flow.
  • Test the flow manually by submitting a form response.
  • Verify the actions performed, ensuring emails are received, and tasks are created if applicable.

Step 4: Deployment

Upon testing successfully:

  • Turn on the Flow to make it live.
  • Monitor its execution via the Power Automate dashboard.

By following these steps, you can automate the management of HSSE Risk Assessments efficiently using Power Automate.

Generating PDFs and Email Automation for HSSE Risk Assessments

Below is the practical implementation for automating the generation of PDF documents and automating the email distribution using Power Automate. This implementation assumes you have created a form to collect the data and a Power Automate flow to trigger the process.

Step 1: Generating PDFs

To generate a PDF document from the collected form data:

  1. Initialize Variables in the Flow:

    • Form Responses: Stores the collected data.
    • HTML Content: Initialize this variable to build the HTML content needed for PDF.
  2. Retrieve Form Responses: Collect the responses from Microsoft Forms using the appropriate Power Automate trigger.

  3. Compose HTML Content: Use the Compose action to structure the HTML content for the PDF. Here’s a sample HTML template:

    
    
      
    
    
      

    HSSE Risk Assessment Report

    Date: @{{TriggerOutputs()?['dynamicContent']('Date')}}

    QuestionResponse
    Question 1@{{TriggerOutputs()?['dynamicContent']('Question1')}}
    Question 2@{{TriggerOutputs()?['dynamicContent']('Question2')}}
  4. Convert HTML to PDF: Add the Convert HTML to PDF action (provided by services such as Adobe PDF Services or any other suitable connector) to convert the composed HTML content to a PDF file:

    • Input: HTML Content from the previous step.
    • Output: PDF File.

Step 2: Email Automation

  1. Send an Email with Attachment: Use the Send an email (V2) action to email the generated PDF to stakeholders:
    • To: List of recipients (could be hardcoded or dynamically fetched).
    • Subject: Unique or relevant subject line like "HSSE Risk Assessment Report".
    • Body: You can include a custom message or leave it as a notification.
    • Attachments: Add the PDF file generated from the previous step.

Example Flow Steps in Power Automate:

1. When a new response is submitted (Trigger)
2. Get response details (Action)
3. Initialize variable (HTML Content)
4. Compose HTML content (Action)
5. Convert HTML to PDF (Action)
6. Send an email (V2) (Action)

Implementation Notes

  • Ensure that the necessary connectors for PDF conversion and email are properly configured.
  • Customize the HTML template according to the specific questions and style requirements of your assessment.
  • Verify permissions and access rights to send emails from the automated system's account.

This practical implementation will help in systematically generating PDFs from collected data and automating the email delivery of risk assessment reports without overlapping with previously discussed steps in your project.

Archiving and Managing Flow Outputs for HSSE Risk Assessments

To implement an automated process for archiving and managing flow outputs for HSSE Risk Assessments efficiently, follow these steps. This solution leverages Microsoft Power Automate for workflows and SharePoint for storing archived documents.

Steps

  1. Create a SharePoint Document Library for Archived Files: Ensure you have a dedicated SharePoint Document Library where the assessment outputs will be archived.

  2. Power Automate Flow Configuration:

    • Trigger: When a PDF is created and email is sent (assuming this was defined in a prior flow).
    • Create File in SharePoint: Store the PDF in the SharePoint Document Library.
    • Update Metadata: Add metadata to archived files for better management and retrieval.

Power Automate Flow - Detailed Steps

Step 1: Create a SharePoint Document Library

  • Navigate to SharePoint: Go to your SharePoint site.
  • Add a New Library: Click on New > Document Library.
  • Name the Library: E.g., HSSE_Risk_Assessments_Archive.

Step 2: Configure the Flow in Power Automate

  1. Trigger: Use the trigger that indicates when the PDF and email step is completed (e.g., When a new email is sent or When a file is created in your working directory).

  2. Action - Create File in SharePoint:

    Action: Create file (SharePoint)
    Site Address: [Your SharePoint Site URL]
    Folder Path: /HSSE_Risk_Assessments_Archive
    File Name: RiskAssessment_.pdf
    File Content: [PDF Content from previous step]
  3. Action - Update File Metadata (Optional but recommended for better file management):

    Action: Update file properties (SharePoint)
    Site Address: [Your SharePoint Site URL]
    Library Name: HSSE_Risk_Assessments_Archive
    Id: [ID of file from previous step]
    Title: Risk Assessment - 
    HSSE Risk Level: 
    Assessor Name: 
    Date Conducted: 

Flow Diagram

  1. Trigger: When a new PDF email is sent.
  2. Action: Create file in SharePoint.
  3. Action: Update file metadata in SharePoint (optional).

Example JSON for Power Automate Flow

{
  "trigger": {
    "type": "When a new email is sent"
  },
  "actions": [
    {
      "action": "CreateFile",
      "parameters": {
        "SiteAddress": "https://yoursharepointsite.com",
        "FolderPath": "/HSSE_Risk_Assessments_Archive",
        "FileName": "RiskAssessment_.pdf",
        "FileContent": ""
      }
    },
    {
      "action": "UpdateFileMetadata",
      "parameters": {
        "SiteAddress": "https://yoursharepointsite.com",
        "LibraryName": "HSSE_Risk_Assessments_Archive",
        "Id": "",
        "Title": "Risk Assessment - ",
        "HSSE_Risk_Level": "",
        "Assessor_Name": "",
        "Date_Conducted": ""
      }
    }
  ]
}

Note

  • Replace all <dynamic_content> with actual content from previous steps or flow context variables.
  • Ensure permissions are set correctly on SharePoint to allow file creation and metadata updates.

By implementing the above process, the HSSE Risk Assessment outputs will be effectively archived and managed within SharePoint, making it easy to retrieve and review as needed.

Power Automate: Implementing Conditions and Using Responses in Emails and PDFs

In this guide, we will cover how to create a Power Automate flow to handle responses from a form with Yes/No questions, use those responses to set up conditions, and then use them in emails and PDFs.

Step-by-Step Implementation

Step 1: Creating the Trigger

  1. Log in to Power Automate and create a new flow.
  2. Choose the "Automated - from blank" flow type.
  3. Select your trigger, which is likely to be "When a new response is submitted" under Microsoft Forms.

Step 2: Capture the Form Response

  1. Add a new step with the action "Get response details".
  2. Select your Form ID and the Response ID from the dynamic content.

Explanation:

  • Trigger: Initializes the flow when a form response is submitted.
  • Get response details: Captures the specific answers from the form to use them later in the flow.

Step 3: Implementing the Conditions

  1. Click "New Step" and select "Condition" from the control actions.
  2. Set up the condition based on the response:
    • Choose the form response you want to check.
    • Set the condition to "equals" and the value to "Yes" or "No".

Example:

Condition: "Form response 1" is equal to "Yes"

Explanation:

  • Condition Control: Allows you to branch the flow based on the response values.

Step 4: Using Responses in Emails

  1. Under the "If Yes" branch, add a new step to "Send an email".
  2. Fill in the email fields, using dynamic content to include form responses in the email body.

Example:

To: person@example.com
Subject: Form Submission Result
Body: The response to Question 1 is: @{triggerBody()?['response_1']}

Explanation:

  • Send an Email: Uses the response details in email content, allowing you to communicate the form's results effectively.

Step 5: Generating a PDF with Responses

  1. Add a new step to "Create a file" in OneDrive or SharePoint.
  2. Configure the file's name and path, and build the content using dynamic content from the form responses.

Example - Create HTML content:

The response to Question 1 is: @{outputs('Get_response_details')?['response_1']}

The response to Question 2 is: @{outputs('Get_response_details')?['response_2']}

  1. Convert HTML to PDF using an action like "Convert file" from a third-party connector or Power Automate premium connector.
  2. Save the PDF file to a specified directory.

Explanation:

  • Create a File: Generates a file with the form responses.
  • Convert to PDF: Ensures the form responses are in a non-editable, shareable format.

Step 6: Handling Multiple Conditions

If your form has multiple questions, you can add more conditions within the flow by repeating the above steps for each question and configuring the conditions accordingly.

Example - Nested Conditions:

  1. Add a second Condition action within the "If Yes" branch of the first condition.
Condition: "Form response 2" is equal to "No"
  1. Branch further actions based on this second condition.

Explanation:

  • Nested Conditions: Allow for more complex logic based on multiple question responses.

Conclusion

By following these steps, you have created a Power Automate flow that:

  • Triggers on form submission.
  • Retrieves form details.
  • Sets up conditional logic based on Yes/No responses.
  • Uses the responses to compose emails and generate PDF documents.

This approach ensures that form responses are captured, conditions are evaluated and the results are communicated efficiently via email and PDF files.