Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Apply custom filter in the lookup of Resco CRM JS Bridge

Posted on by 325

Hi Resco JS Bridge experts,

I am trying to apply a custom filter on the Lookup in Resco CRM form as it cannot be done using the 'Edit Filter' of the lookup. Any idea how can I apply this?

I tried using the code below but I don't know where should I bind it. It should trigger on click of the lookup field.

var lookupForm = new MobileCRM.UI.LookupForm();
var customXMLView =
    `
        ....
    `;
lookupForm.addEntityFilter("fieldname", customXMLView);
lookupForm.addView("fieldname", "Default", true);
lookupForm.allowNull = true; // Allow choosing empty value

Thank you!

  • DynDev185 Profile Picture
    DynDev185 10 on at
    RE: Apply custom filter in the lookup of Resco CRM JS Bridge

    how to delete comment...

  • crm_fan Profile Picture
    crm_fan 95 on at
    RE: Apply custom filter in the lookup of Resco CRM JS Bridge

    Hi, 

    Did you find an answer to this. I am trying to achieve the same. Tried the same code

    The Lookup shows but i want it to be displayed when i click on the lookup plus button.

    Any help would be appreciated.

    Thanks

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans