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?
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.
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 attachments
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:
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.
Could you show the flow design which looks before executing ?
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! 🙌
I'm confused about the Apply to Each array() expression. Why is that needed? Aren't you just working on a single file?
File Identifier
Results File Identifier
Does this help?
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?
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
Let me know whether it helps you
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! 🙌
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional