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 / How to reference previ...
Power Apps
Answered

How to reference previous value of a datacard

(0) ShareShare
ReportReport
Posted on by 920 Super User 2024 Season 1

Hi,

 

I have an email that sends out onselect. But i want to reference the value before it is submitted. 

 

I have something like this on my onselect. 

 

SubmitForm(EditForm1_1);

Office365Outlook.SendEmailV2(Dropdown2.Selected.Value,"A Ticket has been Assigned to you. Ticket: "&DataCardValue54.Text,"
<b>Previous Lead: &nbsp</b>"&HOW TO REFERENCE PREVIOUSLY SUBMITTED VALUE HEREt&" <br><br>
<b> Lead: &nbsp</b>"&DataCardValue24_1.Text&" <br><br>
");

Categories:
I have the same question (0)
  • Datanerd Profile Picture
    103 on at

    Hi @wonka1234 ,

    To reference the just-submitted item, use the LastSubmit () function.

    Formname.LastSubmit.YourFieldValue

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @wonka1234 What do you have in the Item property of the Form?

  • wonka1234 Profile Picture
    920 Super User 2024 Season 1 on at

    @CNT  ITem property is - LookUp('Intake',ID = gblRecordID)

     

    @Datanerd  is there a way to reference the previous submitted item? Because I want to show the Old and the New (the new will be created on the submit of the form on select of the button)

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @wonka1234 Do this before the SubmitForm,

    UpdateContext({varLead, LookUp('Intake',ID = gblRecordID).LeadColumn})

    Then,

    use the variable varLead in the Email.

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • wonka1234 Profile Picture
    920 Super User 2024 Season 1 on at

    @CNT  getting error  - invalid number of arguments, 2 instead of 1

     

    UpdateContext({varLead, LookUp('Intake',ID = gblRecordID).Lead_three});

     

    Lead_three is the sp list settings column name.

  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @wonka1234 Try this,

    UpdateContext({varLead: LookUp('Intake',ID = gblRecordID).Lead_three});

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard