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 / Extract Attachment fro...
Power Automate
Unanswered

Extract Attachment from an email

(0) ShareShare
ReportReport
Posted on by 9

Im trying to usean attachment form an email to process with an Ai Builder Model, but the parameter "content" indicate that its null. This is the error on my flow

DevanyFlores_0-1701811906378.png

DevanyFlores_1-1701811949062.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @DevanyFlores,

    How you extract attachments from the Email?

     

    I have made a test to confirm check the contentbytes, select body from the when a new email arrives, then use parsejson to capture the contentbytes

    vqiaqimsft_0-1701828716038.png

    vqiaqimsft_1-1701828835337.png

    We need to convert it to a string from the Base64 format it's in,  which will produce the XML in a string format.

    base64ToString(body('Parse_JSON')?['contentBytes'])

     

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard