Hello,
I am currently working on an approval flow using power automate and sharepoint list. My goal is to set up a list item where my drafting department can insert the preliminary drafts and supporting documentation then, on initial creation, it will go to a preselected approver who will "approve/reject" the package. Afterwards, the approver will add their "comments" file to the list item. Upon doing so, the "when an item is created or modified" flow will trigger again and go through a condition loop to compare if the approver is the same as the last modifier to the list. If yes, it will send an email to the creator of the list item with the attachments.
I currently have the approval flow working and pulling all attachments in the list item. It will pull all attachments and attach to the approval flow (which is what I want). However, when the approver adds their "comments" file I want the condition loop to pull only the latest attached files and send an email to the creator of the list item. Currently, I have a condition command that looks for attachments containing "comments" and appends them to array. However, when the flow runs it still attaches all attachments to the response email.
Is there a way for power automate to pull and attach only the attachments added during the modification cycle (cycles beyond initial creation) while still retaining the attachments that are already there?
Any help will be greatly appreciated.
Hi @cleist06
May be try this approach
And finally use the attachment content to send email.
The flow which i have designed is looking for attachment who name contains text comments.
Hope this helps !
Nived N 🚀
LinkedIn: Nived N's LinkedIn
YouTube: Nived N's YouTube Channel
🔍 Found my answer helpful? Please consider marking it as the solution!
Your appreciation keeps me motivated. Thank you! 🙌
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional