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 / Rename field before do...
Power Apps
Answered

Rename field before doing lookup

(0) ShareShare
ReportReport
Posted on by 1,146

Thank you for taking the time to read my question.

 

I have this formula in the OnShapeSelected of a map.

 

Notify(LookUp(MapData,ID = Map1.Shapes_SelectedItems.ID).Name,NotificationType.Information)

 

The "=" has a red underline. I THINK this is because the field in my SharePoint list (ID) is the same as the field in the Map. 

I can't remember how to give ID a different name before doing the lookup... can anyone remind me?

 

Thanks

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @iwonder 

    The reason for the red underline is that the types are not compatible.  You are trying to compare a numeric column (ID) with a table of records with an ID column (from your Map1 control) - SelectedItems is a table.

    Try changing your SelecteItems to Selected.

     

    I hope this is helpful for 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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard