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 / Sending Detail Screen ...
Power Apps
Answered

Sending Detail Screen to User Email

(0) ShareShare
ReportReport
Posted on by 62

I have a Detail screen that is populated by conditional fields (controlled by the value of a "format" field). My end goal is to have the app send just the fields and data present in the detail screen to person using the app's email address. (My user group is also small enough that this can be hard coded for individual buttons if needed). I am struggling with a good way to just get this data on screen, and not end up parsing through the SharePoint table it is stored in or end up with a bunch of irrelevant fields. Thank you for your help! 

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @crjwarre 

    I would accomplish this by using the OutlookOffice365 connector.  By placing code to send an email in the OnSuccess property of your form and using the LASTSUBMIT property to access the data we can send an email with info to the user.

     

    What columns do your have?  What should the email look like?  This info would benefit my explanation.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • crjwarre Profile Picture
    62 on at

    I have a list of 52 columns starting with a Lot # (required), and then each column becomes visible based on the format selected. Ideally this would look like a table without all of the blank fields present. This is attempting to replace an InfoPath what would send an "Update" to the user logged into SharePoint. 

  • crjwarre Profile Picture
    62 on at

    Update.JPGIdeally it would look something like this detail view screen

  • mdevaney Profile Picture
    29,991 Moderator on at

    @crjwarre 

    Excellent screenshot.  This provides the perfect information to share some sample code.

     

    Put this code in the OnSuccess property of your Form.  This will show how to display the 1st 3 fields on data in your form.  Continue the same pattern to add more.

     

    Set(newRecord, Form1.LastSubmit);
    Office365Outlook(
     User().Email,
     "Subject Line",
     "
     Lot #: "& newRecord.'Lot #'&"
     Client #: "& newRecord.'Client #'&"
     Fill Line: "& newRecord.'Fill Line'
    );

     

     

    My example shows how to display text fields but you will have to make slight modifications to the pattern for Choices, Dates, People, etc.


    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • crjwarre Profile Picture
    62 on at

    Thank you so much! I will have to try it when I get back into work next!! 

  • crjwarre Profile Picture
    62 on at

    Is there a way to get it to hide unfilled fields without coding an entire show hide for each filed based on the Visible statement? and what modifications would be needed for the choice fields? Thank you so much! It is working now.

  • crjwarre Profile Picture
    62 on at

    I'm also struggling to get it to appear on multiple different lines rather than a blob of text

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard