Correction Dropdown
Table of Contents
Purpose
This flow is an automated process that runs after an HTTP POST request is recieved. This flow is primarily called when the document controller opens the link to the correction form. Depending on what is included in the POST request, this API will do something different. If getContract: true
is recieved, then the API will respond with the folder names in the submission folder, regardless of anything else.
If getContract: false
is recieved, then getSubcontractors
is searched. If getSubcontractors
is not null, then it contains a contract number. The flow will retrieve all JSON files inside that contract folder and return that directly.
This flow was created to implement the dropdown feature in the correction form, so document controllers can select existing submissions. This cuts down on the potential for misspelling, since we can verify the files that are returned through this API.
Given the following information, the **directory’s** contents are returned.
getContract: true
getSubcontractors: {Any}
+-- ..
|-- (root)
|-- **submissions**
| |-- R-33333 (ContractNum)
| | |-- JSON
| | | |-- R-33333.json
| | | |-- Subcontractor1.json
| | | |-- Subcontractor2.json
| |-- A-12345 (ContractNum)
| | |-- JSON
| | | |-- R-33333.json
| | | |-- Kangaroo.json
| | | |-- Subcontractor1.json
getContract: false
getSubcontractors: R-3333
+-- ..
|-- (root)
|-- submissions
| |-- R-33333 (ContractNum)
| | |-- **JSON**
| | | |-- R-33333.json
| | | |-- Subcontractor1.json
| | | |-- Subcontractor2.json
| |-- A-12345 (ContractNum)
| | |-- JSON
| | | |-- R-33333.json
| | | |-- Kangaroo.json
| | | |-- Subcontractor1.json
Flow Diagram
Connections, Triggers, and Actions Used
Trigger: When HTTP Request is recieved
Connector | Action |
---|---|
Variable | Initialize Variable |
Data Operation | Parse JSON Compose |
SharePoint | Get File Content Using Path Create File |
Control | Apply to each Condition |
HTTPS call | When a HTTP request is recieved Response |
Outlook | Send an Email (V2) |