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 / Passing an attachment ...
Power Automate
Answered

Passing an attachment to ai builder issue

(0) ShareShare
ReportReport
Posted on by 142 Season of Giving Solutions 2025

Hi,

I am trying to extract an email attachment and passing it to an action to use my model i build to read the pdf files. Having this error below.

 

powerdevkris_0-1669216001243.png

 

Here is my flow. I have created an object type variable to store the attachment name and content type.

 

powerdevkris_1-1669218127546.png

The data behind the variable is in this format

 

[{"Name":"IMG_20221115_0002.pdf","ContentBytes":"JVBERi0xLjMKJeLjz9MKMSAwIG9iago8PCAKL0NyZWF0b3IgKENhbm9uIFNDMTAxMSkKL0NyZWF0aW9uRGF0ZSAoRDoyMDIyMTExNTEzNDEyNS0wNicwMCcpCi9Qcm9kdWNlciAoSUogU2NhbiBVdGlsaXR5KQo+PiAKZW5kb2JqCjIgMCBvYmoKPDwgCi9QYWdlcyAzIDAgUiAKL1R5cGUgL0NhdGFsb2cgCj4+IAplbmRvYmoKNCAwIG9iago8PCAvV2lkdGggNzQgL0hlaWdodCAxMDYgCi9CaXRzUGVyQ29tcG9uZW50IDggL0NvbG9yU3BhY2UgL0RldmljZVJHQgovRmlsdGV

 

 

Categories:
I have the same question (0)
  • Verified answer
    Sundeep_Malik Profile Picture
    6,484 on at

    Hey @powerdevkris 

     

    I am not sure the above method would work. Instead can you try this thing:

     

    Save the file to SharePoint library or onedrive by create file action.

     

    After that using get file content action get th content and then pass the content you get from that action to the AI Builder.

  • powerdevkris Profile Picture
    142 Season of Giving Solutions 2025 on at

    Thanks @Sundeep_Malik! this step have worked. Appreciate the response.

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
Expiscornovus Profile Picture

Expiscornovus 199 Most Valuable Professional

#2
David_MA Profile Picture

David_MA 194 Super User 2025 Season 2

#3
harshdeol Profile Picture

harshdeol 167 Moderator

Last 30 days Overall leaderboard