Correction Submission
Table of Contents
Purpose
Once the correction form is submitted, it will send an API POST request to this flow. The POST request will contain an object with data from the form, which will be parsed. The file indicated by the contract number
and subcontractor name
combo specified the file that needs to be edited. It functions in the following way:
An HTTP POST request is parsed for data, getting the data ready to be maniupulated.
The email body, an array pregenerated by the JavaScript contains an array of the corresponding items to be corrected, is parsed and appended with
<br>
in the HTML to create a better looking email.The file specified by
contract number
andsubcontractor name
combo is retrieved and the removeal of theeditableItems
property is attempted.Whether or not the above action succeeds, the the pregenerated array
editableItems
is then added back as a property. This updates what items can be changed.The file is overwritten with this new data.
An email is sent back to the contacts listed, informing them of the need to correct their information. The note from the POST request is also included.
Flow Diagram
Connections, Triggers, and Actions Used
Trigger: When HTTP Request is recieved
Connector | Action |
---|---|
Data Operation | Parse JSON |
SharePoint | Get Files (Properties Only) |
HTTPS call | When a HTTP request is recieved Response |