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 Pages / How to use different v...
Power Pages
Unanswered

How to use different views for same lookup field in two different tables?

(0) ShareShare
ReportReport
Posted on by 121

Hello Experts,

 

I have a scenario, where I have two tables say 'summer_data' and 'winter_data' and I have a single lookup filed in both the table named as 'week' from table 'Dimweek'. 

I also have two entity forms for summer and winter data insertion in 'summer_data' and 'winter_data' respectively.

on those two forms I have lookup field 'Week'

Now, I want to restrict the 'week' lookup field to display only summer weeks i.e. between month May to August on summer  form similarly I want to display week lookup field to display winter weeks. i.e. between December to Feb.

 

what are the best possible ways to achieve this?

Can I use different views from 'Dimweek' table to achieve desired result?

 

 
Please help me with this.

 

 

Categories:
I have the same question (0)
  • MarkBiggerstaf Profile Picture
    Microsoft Employee on at

    Hello,

     

    I am responding to meet the SLA of this thread.  You should be able to populate the lookups using a custom fetch and the criteria you described.  

     

    I will allow others to address this technical implementation.

    This seems to be a good thread for this question:  https://powerusers.microsoft.com/t5/Power-Apps-Portals/Portal-Execute-Dynaics-365-FetchXML-from-entityform/td-p/636807

     

    Thanks,

     

    Mark Biggerstaff

    Dynamics Support

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

    Hi, we can't achieve that with OOB configuration, you can add JS/jQuery and reload the data.

     

    Please take a look at this article to see how to add JS to a lookup window in the Portals: http://oliverrodrigues365.com/2021/01/24/power-apps-portals-custom-lookup-filter/

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!

Leaderboard > Power Pages

#1
Suriyanarayanan V Profile Picture

Suriyanarayanan V 45

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 14 Most Valuable Professional

#3
DP_Prabh Profile Picture

DP_Prabh 13

Last 30 days Overall leaderboard