Professional Documents
Culture Documents
1 Microsoft SQL Database View provided by Cotton on team SQL Server (On-premises)
5 Dataflow will trigger the Power Automate Flow once it's Power Automate Flow
completed. Then it will add a JSON message into the Azure
storage queue [6]. The JSON message will only contain the
message type, GUID and the data import status.
Another copy of the message will be added to the queue [15]
to capture the journey of the PO in Application Insight.
6 Power Automate Flow [5] will add a JSON message into the Storage Queue
Storage Queue [6].
Whan a message is added to this queue, Azure Function [7] will
trigger.
8 A JSON Message with all PO data required to generate all 3 Storage Blob
files is added to this blob, by Azure Function [7]. One message
for each PO.
9 A JSON message is added to this queue by Azure Function [7]. Storage Queue
The message will have the referance to the relavant message
in the blob storage [8] with all PO data to process the PO.
When a message is added to this queue, the Azure Function
[10] will trigger.
11 A JSON message is added to this queue by Azure Function [10]. Storage Queue
The message will have adequate informtaion to send an email
to the supplies and the buyer. Also the message will contain
the SharePoint URL to the 3 files that will be attached to the
mail.
12 This Azure Function [12] gets triggered when a message is Azure Function
added to storage queue [11].
This function will:
• Create an email based on the given template.
• Attache 3 files [PDF, CSV, Excel] relavant to the PO
• Send the email to the supplier and the buyer
• Add a message to queue [13]
• Add a message to queue [15]
13 A JSON message is added to this queue by Azure Function [12]. Storage Queue
The message will contain information to update the
PurchareOrderStatus table for audit purposes and delete all
records relared to PO from PurchaseOrder table.
14 This Azure Function [14] gets triggered when a message is Azure Function
added to storage queue [13].
This function will:
• Update the PurchaseOrder status table's column StatusId
with the current status of the PO. Status could be completed
or failed.
18 SharePoint Site Collection is used to store the store files SharePoint Site Collection
generated by Azure Function [10]. For each PO, 3 files will be
generated and stored in the Document Library in the given Site
Collection
Gateway name:
• uat-b-datagwy01-a
Incremental import column:
• automation_insert_utc_datetime
Table names:
• PurchaseOrderStatus
• PurchaseOrder
• ProcessStatus
Report name:
<Style Number>|| – ||<Order Number>|| – ||
<Reference>|| – Purchase Order’.pdf
Application ID (Client ID): ef6088dd-0550-4d66-bcb2-
fcad4abe5bff
Client Secret:
3lQ8Q~sNlvkuH1Ik7UBf0CXrCYbcXoZZ_hLXIb4M
Document Library:
Pending:
Table names:
• PurchaseOrderStatus
• PurchaseOrder
• ProcessStatus
Report name:
<Style Number>|| – ||<Order Number>|| – ||
<Reference>|| – Purchase Order’.pdf
Application ID (Client ID): ef6088dd-0550-4d66-bcb2-
fcad4abe5bff
Client Secret:
3lQ8Q~sNlvkuH1Ik7UBf0CXrCYbcXoZZ_hLXIb4M
Document Library:
{
"MessageType":"DataFlow",
"GUID":"4e58e818-94b1-4795-b36c-9c856c2559e6",
"Import Status":"Completed"
}