Hi,
I want to create an approval flow using the data of an excel table from sharepoint and update this table according of the response (approved/declined) .
The table that I mention have this structure:
Country | Date | Status | Attachment |
Country 1 | 01/01/2019 | Charged | URL 1 |
Country 2 | 01/01/2019 | Charged | URL 2 |
Country 3 | 01/01/2019 | Charged | URL 3 |
And I have a different approval responsable for each country.
Country 1 - Ana
Country 2 - Maria
Country 3 - Jose
I need the flow start when this table get new rows or is updated. The idea is send an approval e-mail to the respective responsable. For example if i get data rows for 3 countries, the flow have to sent 3 e-mails to the responsables(Ana,Maria and Jose) . And include in this e-mail the respective attachment (Using column with URL) for each country.
Finally, according of the response, the column "Status" of the table have to be update with the result:
Country | Date | Status | Attachment |
Country 1 | 01/01/2019 | Approved | URL 1 |
Country 2 | 01/01/2019 | Declined | URL 2 |
Country 3 | 01/01/2019 | Approved | URL 3 |
Solved! Go to Solution.
Hi @PEAMBL ,
Do you want to send an approval email to corresponding approver when the according status is Charged?
Please check the following flow configuration for a reference.
When working with Excel online connector, there is not trigger could be used for “When a row is created or updated”. So you may need to trigger the flow daily using Recurrence to get the updated rows.
In my scenario, I am using Button trigger for testing.
Add action List rows present in a table. Note: I am using Filter Query to just filter out items that Status equals to “Charged”. My understanding is that when the status is Charged, they are new rows.
Status eq 'Charged'
Add Apply to each and select Value from previous action, then the action Start and wait for an approval.
In order to send email to separate approver based on which Country it is, use the following code:
if(equals(items('Apply_to_each')?['Country'],'Country1'),'test4@xxxxx.onmicrosoft.com',if(equals(items('Apply_to_each')?['Country'],'Country2'),'mabel@xxxxx.onmicrosoft.com','test2@xxxxx.onmicrosoft.com'))
In the action Update a row, select dynamic Response from approval action for Status field.
Best regards,
Mabel
Hi @PEAMBL ,
Do you want to send an approval email to corresponding approver when the according status is Charged?
Please check the following flow configuration for a reference.
When working with Excel online connector, there is not trigger could be used for “When a row is created or updated”. So you may need to trigger the flow daily using Recurrence to get the updated rows.
In my scenario, I am using Button trigger for testing.
Add action List rows present in a table. Note: I am using Filter Query to just filter out items that Status equals to “Charged”. My understanding is that when the status is Charged, they are new rows.
Status eq 'Charged'
Add Apply to each and select Value from previous action, then the action Start and wait for an approval.
In order to send email to separate approver based on which Country it is, use the following code:
if(equals(items('Apply_to_each')?['Country'],'Country1'),'test4@xxxxx.onmicrosoft.com',if(equals(items('Apply_to_each')?['Country'],'Country2'),'mabel@xxxxx.onmicrosoft.com','test2@xxxxx.onmicrosoft.com'))
In the action Update a row, select dynamic Response from approval action for Status field.
Best regards,
Mabel
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
User | Count |
---|---|
87 | |
57 | |
39 | |
35 | |
33 |
User | Count |
---|---|
79 | |
67 | |
57 | |
49 | |
40 |