web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get attachment from po...
Power Automate
Suggested Answer

Get attachment from post purchase Invoice

(0) ShareShare
ReportReport
Posted on by 5
Hello, 

I'm trying to download an attachment after posting a purchase invoice and save it to sharepoint.
 
 
My Flow:
 
 
AND I have a problem when downloading the attachment, every time it throws me an error
 
 
how can i get attachments and sent it to sharepoint?
Categories:
I have the same question (0)
  • Suggested answer
    stampcoin Profile Picture
    5,158 Super User 2026 Season 1 on at
    After the trigger ( I use When a business event occurs (V3), with Event= Purchase invoice posted - 1.0 (Microsoft))
    , add Find records (V3),to get the attachment name and the id.
     
     
    For Each record found ,
    Add Get an image, file or document (V3), see below.
     
     
    Add 'Create file',
     
    File Name= items('For_each')?['fileName']
     
    File Content= 
    body('Get_an_image,_file_or_document_(V3)')
     
     
     
     
    hope that help.
     
  • JD-09071704-0 Profile Picture
    5 on at
    Thank you for help, but still i have errror:
    Is it typing something wrong?
     
    Find record V3:
     
  • Tomac Profile Picture
    4,105 Moderator on at
    Your filter query references "parent" instead of the recommended "parentId"
  • JD-09071704-0 Profile Picture
    5 on at
    Thank you, my mistake, missed the ‘Id’ at the end. 
    I changed it and unfortunately the error still occurs, only this time different.
    I am a beginner at power Automate,
     
    What am I still doing wrong?
  • stampcoin Profile Picture
    5,158 Super User 2026 Season 1 on at
    You can use another trigger to replace your current trigger.
     When a business event occurs (V3), with Event= Purchase invoice posted - 1.0 (Microsoft)),
     
    so when you post the invoice, it will be triggered.
     
     
    if you want to keep you current one, use the 'Row Id', see below screen shot.
     
    let me know if you have any questions.
     
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard