Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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

 

 

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at
    Re: Extract Attachment from an email

    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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492