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 / Automatically Update D...
Power Apps
Answered

Automatically Update Default Value When LookUp Value Changes

(0) ShareShare
ReportReport
Posted on by 27

Hi, 
Apologies if this has been resolved elsewhere - I've looked but can't find anything that matches my query.
I have a Power App with 2 Sharepoint Lists. For simplicity I'll say they comprise the following:

1. Audits: With the following fields - Title (text), Auditor (People Picker), Audit Date (Date and Time)

2. People: Name (People Picker), Auditor's Peer (People Picker)

I have a form called 'Audit Information'. On that screen are the fields: Title, Auditor, Audit Date, and Auditor's Peer.

Title, Auditor, and Audit Date come from the Audits list. 
Auditor's Peer is just a text label field with a default of Lookup(People, Auditor.Selected.Email = Name.Email, 'Auditor's Peer'.Email). 

All of this works fine, except:
If the actual Auditor's Peer changes (which happens quite a lot) then I want the text label field to update to match the new information. It does for new Audit Information records, and if I go into the relevant page on existing Audit Information records and save/ submit (to effectively refresh the info), but my lists run to hundreds of records each and I'd really rather it updated automatically. 

I wondered if I could get round it by setting a variable for the OnStart properties of the app, and then setting the default value for the text label field to the variable - so that it would at least refresh/ update when the app was started, but I had no joy

(I tried Set(varap, Lookup(People, Auditor.Selected.Email = Name.Email, 'Auditor's Peer'.Email)) - but that just kept coming up with a blank result). Then I tried setting a local variable in the OnSelect properties of the Auditor field, and again setting the text label default to be the variable - this, again, worked for new or manually refreshed records, but doesn't update automatically on existing records). 

Feel I'm close (maybe I'm not!), but am definitely now at the limit of my knowledge. 

Any help would be much appreciated.
Thanks

Categories:
  • Verified answer
    gulshankhurana Profile Picture
    1,397 Moderator on at

    Hi

     

    For updating existing records, You'd need a power automate flow with a trigger set to when the Audit's Peer field is updated in the People table.

     

    I hope this information helps. If it does then please consider accepting it as a solution to help other members  find it.

    Good luck.

     

    Kind regards

     

    Gulshan

  • DaddyCoolhwip Profile Picture
    27 on at

    Thanks Gulshan
    I'd actually built a flow to use as a workaround (which works) while I waited for responses, so good to know it wasn't time wasted!
    Appreciate your 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 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 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard