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 Apps / Submitted form with Js...
Power Apps
Unanswered

Submitted form with Json image to email body

(0) ShareShare
ReportReport
Posted on by 6

Hi,

I'm having some issues with creating a onselect code for a submitted form  with an uploaded image using JSON function to email body. So far the submitted form details  shows in the email body but the image does not appear in the body as well. if I don't fill in detail of form the image appears on email body just fine. Can any one point out were i went wrong please? I've attached the same emails as well. Thank you

Bellow is the coding I wrote :

 

SubmitForm(RQform);
Office365Outlook.SendEmailV2(
    "My email@test.com",
    "New Request",
    "Asset Location : " & RQform.LastSubmit.'Asset Location' & "<br>Equipment ID : " & RQform.LastSubmit.'Equipment ID' & "<br>Categories : " & RQform.LastSubmit.Categories & "<br>Requested Task : " & RQform.LastSubmit.'Requested Task' & "<br>Priority : " & RQform.LastSubmit.Priority & "<br>Status : " & RQform.LastSubmit.'Status (rpet_status)' & "<br>Raised By : " & RQform.LastSubmit.'Raised by' & "<br>Image : " & "<br><img src=" & JSON(
        Image7.Image,
        JSONFormat.IncludeBinaryData
    ) & "></img></br></br>"
);
ResetForm(RQform)
working image.JPG
failed image.JPG
Categories:
I have the same question (0)
  • BobH81 Profile Picture
    6 on at

    Hi,

    I figured it out. i created a variable before the submit form command and then replaced the JSON code with the variable. I've highlighted the extra coding:

     

    Set(varIMAGE, JSON(
            Image7.Image,
            JSONFormat.IncludeBinaryData
        ));
    SubmitForm(RQform);
    Office365Outlook.SendEmailV2(
        "test@test.com",
        "New Request",
        "Asset Location : " & RQform.LastSubmit.'Asset Location' & "<br>Equipment ID : " & RQform.LastSubmit.'Equipment ID' & "<br>Categories : " & RQform.LastSubmit.Categories & "<br>Requested Task : " & RQform.LastSubmit.'Requested Task' & "<br>Priority : " & RQform.LastSubmit.Priority & "<br>Status : " & RQform.LastSubmit.'Status (rpet_status)' & "<br>Raised By : " & RQform.LastSubmit.'Raised by'& "<br><img src=" & varIMAGE & "></img></br></br>"
    );
    ResetForm(RQform);

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 Apps

#1
Valantis Profile Picture

Valantis 431

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 280 Super User 2026 Season 1

Last 30 days Overall leaderboard