Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

addCustomFilter Method not working on CRM Portal

Posted on by Microsoft Employee

I was trying to Filter a look up  based on other Look up.I wrote  a fetch xml and trying to invorke in the crm portal as we do for crm form. But it does not identify the method.

what is the method to filer in crm portal.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: addCustomFilter Method not working on CRM Portal

    I have a scenario like Account->Product--> product versions.

    My filters gives  account based products and versions, but again in that if I select a product if only 1 version is available ,that should get filtered. How can we achieve this dynamically.

  • Suggested answer
    Charles Abi Khirs Profile Picture
    Charles Abi Khirs 3,569 on at
    RE: addCustomFilter Method not working on CRM Portal

    Hello,

    The JavaScript applied in the form on the CRM will not be applied on the portal.

    What I suggest for non-code solution,

    1. Create a new form specific to the portal

    2. Create new view specific to the lookup

    3. In the view, apply the filtering you need for the lookup

    4. Select this new view in your lookup field placed on the new form

    5. In Entity Form of theportal, point to this form

    Note: don't forget to give the entity permission for the entity of the lookup to the needed web roles

  • rthompson Profile Picture
    rthompson 1,530 on at
    RE: addCustomFilter Method not working on CRM Portal

    Hi,

    Please show screenshot of you code or what you are doing.  This would be very helpful.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans