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 / Lookup record value di...
Power Apps
Answered

Lookup record value disappears after editing other field in the same table

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am creating a user management app, it contains a table called Users

a field called Supervisor is a self lookup column

when I change values in other columns and call patch function

the supervisor field value disappears.

Can any one help me to solve this

this is the formula

Patch(
' Users',
LookUp(
'Users',
Username = viewlSelectedUsername
),
{
'Id': Id.Text,
Drpdown1: cmbRcmUserRole.Selected.Value,
Supervisor: LookUp('Users',Username = cmbSupervisor.Selected.Username),
Team: cmbTeam.Selected.Value,
'Type': cmbType.Selected.Value
}
)

Categories:
  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Maybe it's caused by the syntax you're using to update the Lookup column.

    vyujincuimsft_0-1657788712425.png

    Generally, the syntax should be like this

    Patch(
     'Site Inspections',
     LookUp('Site Inspections', ID=1),
     {
     BranchLocationLookUp: {
     Id: 2,
     Value: LookUp('Branch Locations', ID=2, Title)
     }
     }
    )

    Maybe you could try the following formula:

    Patch(
    'Users',
    LookUp(
    'Users',
    Username = viewlSelectedUsername
    ),
    {
    'Id': Id.Text,
    Drpdown1: cmbRcmUserRole.Selected.Value,
    Supervisor: {Id: LookUp('Users',Username = cmbSupervisor.Selected.Username).ID,Value: LookUp('Users',Username = cmbSupervisor.Selected.Username).Username},
    Team: cmbTeam.Selected.Value,
    'Type': cmbType.Selected.Value
    }
    )

     In addition, here is a link that might help you:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/One-dropdown-value-from-Reminder-Form-not-passing-to-Sharepoint/td-p/1665983

     

     

    Best Regards,
    Charlie Choi

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

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard