Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Setting value for Lookup field


Trying to set value for a Lookup field in NewForm. What datatype sturcture (record) is needed for Card Default property?

I tried something like: LookUp(source, ID=x), {Id:1, Value:"x"} but no success.


FYI, I'm joining 2 lists using ID col. of list A to Lookup col. of list B referenced to A.ID (one-one relationship); So while adding records in List B, i should set reference column manually (using a valued hidden card). Maybe i'm doing badly. Any suggestion if i am wrong about it?



Community Support
Community Support

Hi @amirhossein,



If you generate the App from SharePoint, then there would be edit form and display form generated automatically, and the datacard property is also set automatically.

For customize part, please take a look at the Understand data cards part.

Understand data cards

Adding some more reference.

Understand data forms in Microsoft PowerApps

Edit form and Display form controls in PowerApps

Data Cards:

Understand data cards

Card control in PowerApps

Introducing support for lookups and a new sample app

And if you need any further assistance, please post back.


Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks @v-micsh-msft my datasource is SharePoint and unfortunately i couldn't create sharepoint valid LookUp record (contains @datatype,  Claims, etc) from datesource record in PowerApps. Finally i changed LookUp column type to Number and store foreign key as single value. So no success.

Helpful resources

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.


Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (8,227)