Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Party List lookup field!

(0) ShareShare
ReportReport
Posted on by

Hi friends,

I have a requirement where "required attendees" field under Appointments should setdefault view to contacts entity which i have achieved using Fetchxml J script.

But the lookup field still shows organisations drop down list when i click the magnifying glass and when i select "Look Up More Records" it shows contacts as default view as per J script.

how can i change the lookup field to show contacts in the drop down when the magnifying glass is selected.

can some one please help.

Thanks

*This post is locked for comments

  • Raghuveer Profile Picture
    on at
    RE: Party List lookup field!

    Hi Friends,

    Code to set Partylist lookup view to default.

    this code works!

    $("#requiredattendees").focus(function () {

       var reqatt = $("img[attrName='requiredattendees']");

       if (reqatt.length > 0)    

       {

           reqatt[0].setAttribute("lookuptypes","2");

           reqatt[0].setAttribute("defaulttype","2");

           regatt[0].setAttribute("DefaultViewId","00000000-0000-0000-00AA-000010001004");

       }

    });

    Thanks and Regards,

    Raghu

  • Raghuveer Profile Picture
    on at
    RE: Party List lookup field!

    Hi Aileen,

    Yes, I tried that code..... doesn't work.

    Can you please suggest me how to achieve this.

    Thanks for your time.

  • Aileen Gusni Profile Picture
    44,524 on at
    RE: Party List lookup field!

    Raghuveer,

    You tried this doesn't work?

    missdynamicscrm.blogspot.sg/.../crm-20112013-filter-look-for-lookup-activity-party.html

  • Suggested answer
    Sayhaitokumar Profile Picture
    7,042 on at
    RE: Party List lookup field!

    Hi Raghu,

    All you need to config using "Related Record Filtering"

    Read the below blog you will get some idea

    www.powerobjects.com/.../fix-for-filtered-related-lookup-not-working-in-crm-mobile-apps

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,304 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans