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

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
    Microsoft Employee 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard