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 outdated data
Power Apps
Answered

Email with outdated data

(0) ShareShare
ReportReport
Posted on by 8

Objective: send an email when a specific field (Status) is update.

 

The problem: The email is going with the previous value. Ex.: I am changing the status from A to B and the email is saying that the value is A.

 

I am using the function: "Office365Outlook.SendEmailV2" on the "OnSucess" of the form:

If(varChange_Status=true, Office365Outlook.SendEmailV2(varRecord.Owner.Email,"Stauts update - "& varRecord.Status.Value,))

 

The VarChange_Status changes to True in "OnChange" of the Status.

 

It seams that it are sending the email before save the information

 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,752 Most Valuable Professional on at

    Hi @Lucas_Sampaio ,

    You need to use the LastSubmit() function - so assuming this field is present in the form submission

    If(
     varChange_Status=true, 
     Office365Outlook.SendEmailV2(
     Self.LastSubmit.Owner.Email,
     "Status update - "& Self.LastSubmit.Status.Value
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Lucas_Sampaio Profile Picture
    8 on at

    @WarrenBelz thank you a lot for your quick answer, but I tried this and even so I geting an outdated data.

    Do you have any other idea?

     

    (yes, the field is in the form submission)

  • Verified answer
    WarrenBelz Profile Picture
    155,752 Most Valuable Professional on at

    @Lucas_Sampaio ,

    Please see updated post below - I forgot to change the second value. I assume you are running this on the OnSuccess of the Form?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Lucas_Sampaio Profile Picture
    8 on at

    Thank you @WarrenBelz for your help again, and sorry for that, if I had pay more attention I would noticed what was missing.

  • WarrenBelz Profile Picture
    155,752 Most Valuable Professional on at

    Thanks @Lucas_Sampaio 

    Glad I could help.

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 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard