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 / Getting attachment con...
Power Automate
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

 

 

Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

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

  • Community Power Platform Member Profile Picture
    on at

    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

     

     

     

  • wskinnermctc Profile Picture
    6,519 Moderator on at

    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?

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

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

  • Community Power Platform Member Profile Picture
    on at

    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. 

  • wskinnermctc Profile Picture
    6,519 Moderator on at

    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

    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.

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 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard