web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

alternative of OData request from Dynamics 365 Portal page

(0) ShareShare
ReportReport
Posted on by 197

So I have a page and I have two lookup inputs on it, let's call them A and B.

When I change A field, B is automatically filtered.

The thing is that I'm trying to do looks like this:

If after filtering B, based on the A value, it contains one value I want to set it.

Problem:

With OData I can't do that because the relationship between A and B is N to N, it means that I can't create a view with column B in entity A or vice versa.

Same would be if I made a request on CRM API.

So my question to you all is:

How can I fulfill the thing I am trying to do? 

Is there any way to execute the FetchXml from the page(from custom js code, not from liquid page)?

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi magical,

    The portal inherits the functionality from CRM in regards to filtered lookups. 

    Filtering lookups for 1:N and N:N relationships can be achieved without custom code by updating Related Records Filtering under Field Properties for the desired lookup.

    How to Filter Lookups Without Custom Code in Dynamics 365 Customer Engagement (arbelatech.com) 

    Or you can refer following link:

    --Using liquid page template and render lookups as a select dropdown and replacing values with javascript code. 

    Custom Lookup filtering on PowerApps Portals - Dancing with CRM

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 75 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 52 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 42 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans