Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Getting attachment content from library instead of list

(0) ShareShare
ReportReport
Posted on by

Hi all, I am working on automating the extraction of metadata from a document once it is uploaded to a SharePoint library. I am trying to create an attachment variable of the file content so I can take advantage of the Feedback Loop preview feature. My flow currently looks like the below, but the file cannot be located with this instruction (because Automated Formula Library is not a list). Can I use a different action than "Get attachment content"? ("Get file content" does not work.) Do I need different dynamic content entries in the Id and File Identifier? 

raubuchon_0-1692968545813.png

 

 

  • Community Power Platform Member Profile Picture
    on at
    Re: Getting attachment content from library instead of list

    No, but you make a good point-- I didn't realize I was doing all this work to make that email attachment "work", when I don't care about having the file in the email. I care about having the file stored in the AI model so I can tag it and improve the model! I'm going to try removing the steps/ variables related to that attachment and re-test.

  • wskinnermctc Profile Picture
    6,517 Super User 2025 Season 1 on at
    Re: Getting attachment content from library instead of list

    So is it just the attachment in the email that is being a problem? 


    Can you click that little box to make the Attachments expand to be Attachments Name and Attachments Content in separate fields?

     

    Click the toggle box for attachmentsClick the toggle box for attachments

  • Community Power Platform Member Profile Picture
    on at
    Re: Getting attachment content from library instead of list

    Hi @wskinnermctc and @Nived_Nambiar 

    So, the flow does several things. When a file is dropped into the library, the AI model engages and updates the file metadata based on the file content. There's a feedback loop as well where if the confidence score of a given category is too low, the file gets stored for re-tagging. Unfortunately, the first way I designed the feedback loop, it worked but instead of the actual file getting stored for re-tagging, just the data of the file got stored-- and since it wasn't a PDF, I couldn't actually tag it or do anything with it within the AI model. The apply to each was me trying to create an attachment variable for the flow to store.

     

    I have been trying to solve this problem (the problem of putting the actual PDF into storage for re-tagging) for weeks with no success, and now the flow itself isn't working because of the changes I've made to try getting this PDF attachment stored correctly. I hope that makes sense. Anyway here is the flow in its current state:

     

    raubuchon_5-1692987997080.png
    raubuchon_6-1692988031974.png

    raubuchon_7-1692988074621.png

    raubuchon_8-1692988122841.png

    raubuchon_9-1692988165321.png

    raubuchon_10-1692988244636.png

    It's a very long flow and I have klodged it together-- I seriously doubt that all of the steps are necessary, but I don't know which ones to remove and I didn't want to break the flow altogether. 

  • Nived_Nambiar Profile Picture
    17,497 Super User 2025 Season 1 on at
    Re: Getting attachment content from library instead of list

    Hi @wskinnermctc 

     

    Could you show the flow design which looks before executing ?

     

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

  • wskinnermctc Profile Picture
    6,517 Super User 2025 Season 1 on at
    Re: Getting attachment content from library instead of list

    I'm confused about the Apply to Each array() expression. Why is that needed? Aren't you just working on a single file?

     

    File IdentifierFile IdentifierResults File IdentifierResults File Identifier

     

    Does this help?

  • Community Power Platform Member Profile Picture
    on at
    Re: Getting attachment content from library instead of list

    Hi, I was not able to use that action previously but I added it this time and saved the flow. Now I have a new error. The path is correct. Am I setting up this "apply to each" function incorrectly? 

    raubuchon_0-1692971302080.png

     

     

     

  • Nived_Nambiar Profile Picture
    17,497 Super User 2025 Season 1 on at
    Re: Getting attachment content from library instead of list

    Hi @Anonymous 

     

    Regarding your question, get attachment content is used to extract data/content from a list item rather from a library. Instead of Get Attachment Content, give a try with get file content 

     

    Nived_Nambiar_4-1692970756927.png

    Let me know whether it helps you 

     

     

    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