web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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 144 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,499 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
    144 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 308

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 226 Most Valuable Professional

Last 30 days Overall leaderboard