Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Selecting and attaching newest attachment when modifying a sharepoint list item

(0) ShareShare
ReportReport
Posted on by

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.

  • Nived_Nambiar Profile Picture
    17,497 Super User 2025 Season 1 on at
    Re: Selecting and attaching newest attachment when modifying a sharepoint list item

    Hi @cleist06 

     

    May be try this approach 

     

    Nived_Nambiar_0-1710346125793.png

     

    Nived_Nambiar_1-1710346154762.png

     

    Nived_Nambiar_2-1710346183347.png

     

    Nived_Nambiar_3-1710346203255.png

     

    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 !

    Thanks & Regards,

    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! 🙌

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow