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 / Displaying and retriev...
Power Apps
Unanswered

Displaying and retrieving values to display for SendEmailV2

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Good day all. I have encountered an issue where I have patched a value in a column and tried to retrieve to use it in my email body after. The SharePoint row is updated with the newest value through Patch function, however, when I tried to retrieve it, it retrieves the old value instead.

 

I have thought about giving it more time to Patch before sending the email through Timer function. However, it seems like that is not the issue. I've researched and it seemed like there is something about how the application 'retrieves' the latest data values from the database, and not update it until I refresh the application or so, any advice would be appreciated.

image.png
Categories:
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    To retrieve the latest value, I think you could add a Refresh() function before the Office365Outlook.SendEmailV2.

     

    In addition, if you use a Timmer to send out the email, you should note that some properties within the Timmer maybe affect the operation that you retrieve the column value.

     

    To solve this delay issue, just add a Refresh(ListName)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-qiaqi-msft,

     

    Thanks for your reply. I have tried to refresh the list, however, the email sent still does not contain the latest value.

     

    For instance,

    qwwaqaq_0-1667186799339.png

    As I click on Approve, the SharePoint list column gets updated with the value 'Notes Updated', however, the email I receive, retrieves the previous value, in this case, displaying value 'Notes Original'.

     

    qwwaqaq_2-1667189175993.png

    Another thing to note is that, even if I try to update the Notes value from 'Notes Updated' to 'Notes Updated 2', the value retrieved in the email will not be 'Notes Updated' but will show 'Notes Original'. I wonder if it's something to do with how PowerApps fetch the data values.

     

    Thanks.

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    Could you please tell me that how you set this varRecord?

    Actually, the variable you store the record maybe not be refreshed. Every time you send the email, you shoule trigger the variable again.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello @v-qiaqi-msft,

     

    This is set in order to give the case a unique ID to be saved into the database, so that when I update a request, the correct row is updated. I set it through the gallery from another screen.

    qwwaqaq_0-1667195189401.png

     

    May I know what do you mean by triggering the variable again?

     

    Thank you!!!

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    I mean the formula you create the variable, post the whole formula.

    I mean refreshing the variable.

     

    Please give more details about your scenario, like your Patch() function, all of this could be a clue.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-qiaqi-msft,

     

    I use the varRecord to store the variable of the specific role in the SharePoint list so that I'm able to update and patch a specific row based on its ID.

     

    qwwaqaq_0-1667197502377.png

     

    That is how I make use of the varRecord variable. Regarding the Patch() function,

    qwwaqaq_1-1667197641975.png

     

    this is how I patch the particular column 'Approver 1 Notes' using the TextInput1, which is basically a text box.

     

    Thank you.

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
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard