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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Difference between get...
Power Automate
Answered

Difference between get file content and get attachment content

(0) ShareShare
ReportReport
Posted on by 78

Hello, lay user here (non-coder),

 

I have a general question based on an issue I recently had with one of my flows just to help me understand why the solution I tried worked. My basic question is: What is the difference between the actions "Get Attachment Content" and "Get File Content"?

 

Basically, I have an Approvals flow where I send approvals requests based on a sharepoint list form that users fill out and add multiple attachments to. In order to add the attachments, I had appended the attachment content to an array variable and attached that array to the Approval. It was working fine until recently, when I was editing something else in my Flow unrelated, all of a sudden the Approvals began failing due to the attachment not working properly. I finally figured out that sometimes people use "Get File Content" instead of "Get Attachment Content" within the step where the attachments are appended to the array variable, and that solution worked for me.

 

I really just don't understand why or even why it had been working fine up until now with the other action, but the "Get File Content" action also works. Is this some type of bug I'm encountering? Because from what I can tell the "Get Attachment Content" action should have worked also.

Categories:
I have the same question (0)
  • Verified answer
    eric-cheng Profile Picture
    5,171 on at

    Hi @dsmcwhir ,

     

    Having a look at the docs for the connector here, they will both return the binary of the file but the main difference are the input parameters you can pass into the connector to search for the file/attachment.

     

    ericcheng_0-1627600316521.png

    ericcheng_1-1627600342381.png

     

    Get attachment content allows for additional parameters because you can have multiple attachments within the same list item.  The data type for Id is also different for both connectors with one being an integer (List Item Id) and the other being a string (identifier/file path).

     

    I guess this just makes it easier and less confusing for the end user depending on what input parameters you have available based on your scenario.

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn 

     

  • dsmcwhir Profile Picture
    78 on at

    Thank you. So are you essentially saying that the actions accomplish the same thing just could be more/less useful depending on my scenario? In my case, I'm retrieving multiple attachments from an item in a sharepoint list and then attaching them to an approvals request.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard