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 Apps
Answered

Lookup field

(0) ShareShare
ReportReport
Posted on by 14

Will we see support to bind to lookup fields before GA?

I have the same question (0)
  • Hemant Gaur Profile Picture
    Microsoft Employee on at
    We are actively evaluating supporting lookups for 3rd party developers, at this point decision for GA inclusion is not locked. Please do share inputs on scenarios you are targeting which will help us prioritize. Are you trying to create a lookup control or configure one of the input values to lookup?
  • Menik Profile Picture
    14 on at
    I'm currently thinking about a read-only control where I would need the value of a lookup in order to retrieve some details.
  • Verified answer
    Hemant Gaur Profile Picture
    Microsoft Employee on at
    Got it, thanks for info. Here are some options I can think of
    1. You can try using the text field and clientAPI to set the value on this field and consume it to unblock development and user scenario.
    2. Using webAPI to fetch the lookup value from within the control is another good option.
    3. If the lookup is to be entered by the user , there is an API exposed in typing to launch lookup experience from within the control .

  • Hemant Gaur Profile Picture
    Microsoft Employee on at
    And to optimize on the WebAPI value you can cache the data locally on browser using the setControState API so that it is available for control initialization for the next int() in the same session.
  • Menik Profile Picture
    14 on at
    Hi HermantG, Thanks for the suggestions. I was also thinking about option 1 as workaround. Option 2 won't suit the scenario since you won't be able to react to changes in the lookup value. Am I correct? Would be great to be able to bind to an Lookup field. It's the only commonly used field type that's missing support 🙂
  • Hemant Gaur Profile Picture
    Microsoft Employee on at
    If you remove lookup field from form and use the lookup framework API for value update , you can capture the updated value and control can react to it. This approach however has limitations from client side PBL and validation for lookup in question. Please review and go with approach which suits your need.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @HemantG For option 1, could you be more specific? What is clientAPI? Do we have access to the page context? How can we set the value on the lookup field? 

     

    Thanks,

  • Hemant Gaur Profile Picture
    Microsoft Employee on at

    For clientAPI check out the recording from my last business app summit - 

    Custom controls and advanced client side business logic for model-driven Microsoft PowerApps

     

    For lookup set Value API please refer to docs here.

     

    Also see - How to Get and Set a Lookup Field Using JavaScript in Dynamics 365

     

    WebAPI can also be used to retrive and set the lookup value

  • Hemant Gaur Profile Picture
    Microsoft Employee on at

    chech this recording from MBAS summit last year for client API - https://www.microsoft.com/en-us/businessapplicationssummit/video/BAS2018-111126

     

    Documenatation for the setValue - https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/clientapi/reference/attributes/setvalue

  • hansgfixed Profile Picture
    37 on at

    If I understand this issue correctly there is atm no way to bind a lookup field to a property declared in the manifest? I just encountered this issue and still thinking about a non-hackish way  to solve this. Is there a better way than having a hidden field which triggers a workflow when data has been changed and copies it to the lookup field? I'm building an autocomplete and have to retrieve the lookup country id linked to the received iso code. 

     

    Update: Creating a duplicate field and adding an addOnChange method in the client-side form did the trick.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard