web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Lookup column saving t...
Power Apps
Suggested Answer

Lookup column saving the wrong value

(0) ShareShare
ReportReport
Posted on by 6
I have a canvas app for reporting incidents and have a look up field called "Affected Person" which has a list of employees to choose from to show who has been affected by the incident. Having the issue where if there are employees with the same name (but different IDs), the wrong employee is being added to the lookup when saved.
 
E.g - John Smith (1129) selected but when saved it is saved with John Smith (1140).
 
Any ideas on why this would be happening?

Thanks,
Categories:
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    You probably need to provide some more details as the obvious answer would be that the user chose the wrong person.
    Is this also occurring when there isn't a similar name?
    Are you sorting on name anywhere or performing a lookup on name where the first matching name is chosen. 
  • Suggested answer
    Inogic Profile Picture
    1,135 Super User 2025 Season 2 on at
    Hi,
     
    To prevent confusion when employees share the same name, you can display both the employee's name and ID in the dropdown or combo box. To do this, set the lookup field’s  “DisplayFields”  property to:

    ["fullname & ' (' & ID & ')'"]

    This format will show each employee as, for example, John Smith (1129), helping users select the correct employee. Alternatively, you can substitute another field in place of ID if a different identifier better suits your needs.

    Hope this helps.
     
    Thanks!
    Inogic Professional Services: Power Platform/Dynamics 365 CRM
    An expert technical extension for your techno-functional business needs
    Drop an email at crm@inogic.com 
    Service: https://www.inogic.com/services/ 
    Tips and Tricks: https://www.inogic.com/blog/ 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard