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 / Append Form Field to E...
Power Apps
Unanswered

Append Form Field to Email Subject

(0) ShareShare
ReportReport
Posted on by 2

Hi there, I have power app with a form that sends an email to a central mailbox for monitoring. All functionality works, email is sent and received, etc, but I have been asked to add an additional field to the form to be added to the outgoing email's Subject line for additional (Outlook) filtering purposes. My code is below and the email still fires, but doesn't include the Title field as expected. I've tried various usages of LastSubmit.Title / LastSubmit.ShortDescriptionInput, etc, but cannot get it to fire. Any direction on this would be appreciated.

 

 

Office365Outlook.SendEmailV2(
 "email@domain.com",
 "New Request: " &INSERTCODEHERE,
 varEmailMessage,
 {
 Importance: "Normal"
 }
);
Navigate(Success, UnCover);

 

 

App/list details:

Form = Form2

SP list Column = Title

PA datacard = ShortDescription_DataCard1

Desired input to be appended to outgoing email: Input = ShortDescriptionInput

 

Thank you.

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @clearingwoopsie 

    First, the formula you have should be in the OnSuccess action of your form.

    In that formula, you should have:

    Office365Outlook.SendEmailV2(
     "email@domain.com",
     "New Request: " & Self.LastSubmit.Title,
     varEmailMessage,
     {
     Importance: "Normal"
     }
    );
    Navigate(Success, UnCover);

     

    You refer to Title as the column with the information, but you also mention ShortDescription, so I am not sure which you want, but just replace the Title in the above to what you want.

    Note: the above changes the Subject of the email to include that column.  If you want to change the actual message, then that would be more relevant to whatever you are doing with a variable in varEmailMessage.

     

    I hope this is helpful for you.

  • clearingwoopsie Profile Picture
    2 on at

    Hey there. Thanks for the reply.

     

    - The above is within the OnSuccess action

    - Title column = existing/default SP List column I was trying to repurpose by naming it within the PA to ShortDescription_DataCard1 (data card) and ShortDescriptionInput (input field)

    - When testing with Self.LastSubmit.Title, email sends as expected but still lacks the text submitted in Title/ShortDescriptionInput. Text is entered to Title column in SP List as expected.

    - Created an additional column in SP List for testing, named TitleDescription. Card/field added to form, OnSuccess set to ... & Self.LastSubmit.TitleDescription, email sends but is still missing the input TitleDescription text.

     

    This, to my (not-that-expansive) experience, is one of those issues where it's coded correctly, but still doesn't fire.

     

    Thanks for any followup.

  • CarolynDC1 Profile Picture
    17 on at

    I have the same issue... did you ever find a solution that worked?

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard