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 / Get Attachments from S...
Power Automate
Answered

Get Attachments from Share Point List and use AI Builder Form Processing to read value in attachment

(0) ShareShare
ReportReport
Posted on by 74

Hi Experts,

 

I'm building a flow that allow user to submit attachments (PDF files) which are invoices & using an AI Builder Form Processing to get some fields in these PDF files then send an email.

 

i got errors in first Condition & Get File Content with below message

ActionFailed. An action failed. No dependent actions succeeded.

 

{
 "status": 404,
 "message": "File not found\r\nclientRequestId: 915bc000-594f-4e7b-ad1d-050a4e01e8cf\r\nserviceRequestId: 915bc000-594f-4e7b-ad1d-050a4e01e8cf"
}

 

The expression im using in first Condition

bool(triggerOutputs()?['body/{HasAttachments}'])

 

 

 

flow.png

 

Highly appreciate any help !! 

Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at

    Hi @AnPhamEFL 

    A little bit difficult to inspect in detail all the actions due to image resolution... In any case, which ID are you using when getting the "Get File Content" action?

    Regards,

    Ferran

  • JoeF-MSFT Profile Picture
    on at

    Hi @AnPhamEFL,

    Thanks for posting this question. I think Ferran is on the right path 🙂

    Two things you can try, check out the screenshot below:

    • You can simplify the condition - no need to use an expression. 
    • Check that you are using the rights ids for the attachment and for the list item.

      JoeF-MSFT_1-1617179144816.png

       

  • AnPhamEFL Profile Picture
    74 on at

    Hi  @fchopo @JoeF-MSFT 

     

    Thank you for your suggestion, I just modified my flow and it ran successfully except the most important part, the AI Builder Form Processing. 

    I know the reason why my 2nd Condition returns FALSE but unable to resolve it, it only take the Filename with extension from When an item is created while in the sample flow created by MS named "Start AI Builder form processing when a new file is created" it take the Filename with extension from When a file is created (properties only) which is worked for me. Do you guys have any solutions ? Grateful for your helps !

     

    flow 1.pngflow2.png

  • JoeF-MSFT Profile Picture
    on at

    Hi @AnPhamEFL,

     

    Good to see the progress!


    You should use the Get attachment content action to get the content of the file to then be processed by the AI Builder action. 

    In the screenshot below you will see a working example. Note that I use the Process and save information from forms AI Builder action instead of Predict.  

    JoeF-MSFT_0-1617228079460.png


    Let us know when you get it working or if you have additional questions. Happy to help!

  • AnPhamEFL Profile Picture
    74 on at

    Hi @JoeF-MSFT,

     

    Thank you very much for your time in helping me. I just try your solution and it works really well. I have one additional questions as below

     

    I have the 2nd Condition which use to check if display name of attachments end with .PDF and start with Cost. Normally users will upload 2 PDF files, first is the Cost Confirmation Document.PDF for AI Form Processing another is the original invoice from supplier for Finance department. When the flow runs successfully, it returns 2 emails (picture below) one is contains 2 PDF files & text from AI Form Processing and the other is an original invoice from supplier (which does not match the 2nd Condition)

     

    I try to put the send an email out of the loop Apply for each but it unable to get the value returns from AI Form Processing.

     

    Is there anyway to get all type of Attachments & text from AI Form Processing in just one email. Appreciated your kind help. Thank you !

     

    Flow 1.png

     

    Mail1.png

  • Verified answer
    JoeF-MSFT Profile Picture
    on at

    Hi @AnPhamEFL,

     

    You almost got it! 🙂 You need to put the three last action inside the If yes block, after the AI Builder action. That way, these action will only run when processing the document that starts with the name Cost

    JoeF-MSFT_0-1617297453328.png

     

  • AnPhamEFL Profile Picture
    74 on at

    Hi @JoeF-MSFT 

     

    Thank you for your help !

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard