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 / Filter Lookup bases on...
Power Pages
Unanswered

Filter Lookup bases on N:N relationship

(0) ShareShare
ReportReport
Posted on by 2
HEllo , 

I have a 4 tables :
Product table (virtual table from SAP)
Contact table (standart table)
Contact-Product  (Contains the contact and product information as I cannot create N:N relationship for virtual tables)


In another table called Item I have a lookup to Product , so it shows all the products, 

I want to filter this lookup to show only the product the user have access to based on the Contact-product table

How I acheive that, I dont want to create relationship between Contact-product and Item , because  the contact product it's not used in the  SAP, 


 
Categories:
I have the same question (0)
  • Suggested answer
    SaiRT14 Profile Picture
    1,990 Super User 2025 Season 2 on at
    Pls try the following:
     
    In your Item lookup's View definition, use FetchXML to filter products based on the current user's access:
    <fetch>
      <entity name="product">
        <attribute name="productid" />
        <link-entity name="contact_product" from="productid" to="productid" link-type="inner">
          <filter>
            <condition attribute="contactid" operator="eq" value="@UserId" />
          </filter>
        </link-entity>
      </entity>
    </fetch>
     

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
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard