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 Pages / Custom Lookup on basic...
Power Pages
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.

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    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

  • RaviD365 Profile Picture
    5 on at

    Thanks for your inputs Oliver.

    I am looking Custom Lookup View specifically.

    Can we do with Custom JavaScript and Liquid programing?

    Thanks,

    Ravikumar.

  • Fubar Profile Picture
    8,350 Super User 2025 Season 2 on at

    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

    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.

     

     

  • zuccidevs1 Profile Picture
    7 on at

    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. 

  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    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)

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 Pages

#1
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard