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 / Email with updated Col...
Power Apps
Answered

Email with updated Columns content

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I was wondering if I am able to add which column that was updated in the email text box. If so, how would I go about it. I have over 200 plus columns for inventory.

Also, does it matter if I use Self.LastSubmit.Partnumber or EditForm1.LastSubmit.Partnumber or doesn't matter?

This is what I got so far and I thought it be better to see which columns they have updated for reference if it was updated by mistake.

Office365Outlook.SendEmailV2("test@email.com","Updated Item: " & Self.LastSubmit.PartNumber, 
 
"An item has been updated. See the following infomation:" & 
"<br>"
& "<b>PartNumber: </b>" & EditForm1.LastSubmit.PartNumber & 
"<br>"
& "<b>TotalQTY: </b>" & Self.LastSubmit.TotalBinLo & 
"<br>"
& "<b>DateModified: </b>" & Self.LastSubmit.DateModified & 
"<br>"
& "<b>From: PowerApps</b>"
);

 

Thanks,

 

Jvang

test.PNGtest2.PNG

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

    @Anonymous 

    Your formula can be shortened to the following:

    With(Self.LastSubmit,
     Office365Outlook.SendEmailV2("test@email.com","Updated Item: " & PartNumber, 
     "An item has been updated. See the following infomation: <br>
     <b>PartNumber: </b>" & PartNumber & "<br>
     <b>TotalQTY: </b>" & TotalBinLo & "<br> 
     <b>DateModified: </b>" & DateModified & "<br>
     <b>From: PowerApps</b>"
     )
    )

     

    Using Self, is much easier when you are in a control.  IN this case, you are expected to be in a property of the control which is the form.  I assume this is an OnSuccess action formula.

    So, using Self refers to the current control - the form.  If you are in a property in another for, then referring to Self would refer to that other control...not the form.  In that case, you would need to specify the form control name.

     

    Since you are still storing your data in a single record (for the part) with all of the columns for the inventory in it (as opposed to a more database-like way), you will be faced with putting all of your columns in by hand.  

    Determining which value has changed will not be apparent.  PowerApps does not only keep track of what was updated, but the entire record in the last submit.

     

    So, you will need to either gather what is being changed during the form entry, or prior to submit.

     

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @RandyHayes,

     

    Yes, this is a OnSuccess formula.

    Yeah, that's what I figured after submitting the question on adding the columns.

     

    Thank you,

     

    Jvang

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 345 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard