Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Customize & Extend
Unanswered

Custom Lookup on basic form

(0) ShareShare
ReportReport
Posted on by 5

Hi all,

 

I am looking for some assistance on how to do custom lookup on a basic form within portal page. Similar to the link below one we do internally within Dynamics 365 CE page.

 

Link: addCustomView (Client API reference) in model-driven apps - Power Apps | Microsoft Learn

 Please assist, thanks in advance.

  • oliver.rodrigues Profile Picture
    9,315 Most Valuable Professional on at
    Re: Custom Lookup on basic form

    hi @zuccidevs1 is introducing an search/auto-complete dropdown an option for you? 

    http://oliverrodrigues365.com/2022/08/04/power-pages-autocomplete-dropdown/

    this option would basically allow for a lookup search (but rendering it as dropdown)

  • zuccidevs1 Profile Picture
    7 on at
    Re: Custom Lookup on basic form

    Hello @OliverRodrigues , 

     

    I have implemented something similar to what you have mentioned in the blog. This works well with smaller number of data that we can load into one page (no pagination) and not have too much performance issue. 

    I am running into case where we have thousands of datapoints and creates many pages of pagination. The JavaScript approach works but is filtering the data per page leaving many pages blank without any results. Do you know how to workaround this case? I have not had any luck hiding the empty pages or moving them to the first page etc. 

  • RaviD365 Profile Picture
    5 on at
    Re: Custom Lookup on basic form

    Thanks Fubar,

    First part looks fine with me and makes sense. Second part with fetchXML I got it, rest looks bit challenging as am not a regular portal developer, can you please share any blog are code to assist.

    Back of my mind I think using custom field on portal may bring more work on saving data to Dataverse.

     

    Thanks in advance,

    Ravikumar.

     

     

  • Fubar Profile Picture
    7,960 Super User 2025 Season 1 on at
    Re: Custom Lookup on basic form

    The workaround would be to put the Lookup on the form, set the lookup view to one that would always return no records, hide the lookup field (portal side add a Metadata tag and add a CSS class to hide it) .   This lookup is just there to hold and save the result.

     

    In a custom web template (or could use Web API) run a FechXML query to get a list of selectable items and then build your own interface using the items (and append it to the Portal DOM).  On selection of an item etc populate the Lookup field so the value gets saved on form submit.

  • RaviD365 Profile Picture
    5 on at
    Re: Custom Lookup on basic form

    Thanks for your inputs Oliver.

    I am looking Custom Lookup View specifically.

    Can we do with Custom JavaScript and Liquid programing?

    Thanks,

    Ravikumar.

  • oliver.rodrigues Profile Picture
    9,315 Most Valuable Professional on at
    Re: Custom Lookup on basic form

    Hi, no unfortunately we cannot create a custom lookup via JavaScript (I thought I had an idea for that, but couldn't find it)

    I wrote an article on how to customize the lookup modal, which might help: http://oliverrodrigues365.com/2021/01/24/power-apps-portals-custom-lookup-filter/

     

    If not, please let us know what exactly you are looking for so we can try to help

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics