How to set up Power Automate workflow
A) Flow starts when SharePoint item is created or modified
1. Flow should have SharePoint trigger When an item is created or modified:
Important fields are the following:
-
-
-
General Type=Flow (FastTab)/Flow Trigger fields. This creates a new SharePoint column (“FlowTrigger”) and when users start workflow from NAV, NavSherpa will fill the SharePoint field with a starting value. The Power Automate workflow can use this SharePoint field value to determine, if the workflow should be started on this list item.
-
(Optional) Results (FastTab)/Informative Status fields. This creates a new SharePoint column (“ApprovalResult”), where the Power Automate workflow should write informative message for the user.
-
6. Start the workflow:
a) Manually from the page with implemented NavSherpa controls. Click Process and click Advanced WorkFlow and select from the list of available workflows.
7. Monitor the workflow progress:
a) Manually from the page with implemented NavSherpa controls, see WorkFlow Status factbox.
B) Flow is called directly from NAV
1. Flow should have SharePoint trigger When a HTTP request is received:
2. Create a new
SharePoint Site Setup Card. Name and url does not matter (it can be anything), but the Site Setup must have
Anonymous authorization (if you are running
C/AL NavSherpa in BC140 or lower please use
By logged in authorization here):
Important fields are the following:
-
General (FastTab)/List Type must be set to
Flow. Please select this field first, before SP Site Setup Code, to avoid authorization issues.
-
-
Important fields are the following:
-
-
-
-
(Optional) Results (FastTab)/Informative Status fields. This creates a new SharePoint column (“ApprovalResult”), where the Power Automate workflow should write informative message for the user.
-
9. Start the workflow:
a) Manually from the page with implemented NavSherpa controls. Click Process and click Advanced WorkFlow and select from the list of available workflows.
10. Monitor the workflow progress:
a) Manually from the page with implemented NavSherpa controls, see WorkFlow Status factbox.