Skip to main content Link Search Menu Expand Document (external link)

Initialization Form Has Been Submitted

Table of Contents

  1. Purpose
  2. Overview
    1. File Structure
  3. Connections, Triggers, and Actions Used
  4. Flow Diagram

Purpose

This flow is an automated process that runs after an HTTP POST request is recieved. When the subcontractor inititalization form is submitted, it contacts this API to submit the data. It process the data recieved and creates the folder structure inside the submissions folder. This flow also sends an email to everyone in the email list

This flow mail fail due to a undelivered HTTP response. This doesn’t matter - as long as the emails and such are sent.

Overview

After being triggered, it runs the following:

  1. Read data from the Form
  2. Create a folder in the submissions directory using the file structure listed below
  3. Creates a file in a subfolder called JSON in that directory with the same contract number as its filename.
  4. Loops through all the subcontractors listed and sends them an email indicating to complete the forms.

File Structure

+-- ..
|-- (root)
|-- submission
|   |-- ContractNum (R-33333)
|   |   |-- JSON
|   |   |   |-- ContractNum.json (R-33333)

Connections, Triggers, and Actions Used

Trigger: When HTTP Request is recieved

ConnectorAction
VariableInitialize Variable
Data OperationParse JSON
Compose
SharePointCreate new Folder
Create File
ControlApply to each
Condition
HTTPS callWhen a HTTP request is recieved
Response
OutlookSend an Email (V2)

Flow Diagram

Power Automate Flow for Initialization API



Copyright © 2022 TCIG.