Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Look Up Records set to Contact search instead Account?

(0) ShareShare
ReportReport
Posted on by 60

Hi,

When creating a new Appointment in Dynamics CRM I would like to have the following fields to display and have the Look Up Records set to the following entity and values to look in:

- Regarding -> looking into the Accounts Entity and so displaying Account values and when opening the Look Up Records screen to look up for more records the Account entity is default looked in. Out of box this is the case. That is good for me.

- Required -> looking into the Contacts Entity and so displaying Contact values and when opening the Look Up Records screen to look up for more records the Contacts and not Accounts as it is out of the box the case.

- Optional -> the sames as required.

Any idea how to change this? Or, is this not possible without building a plug in?

Thanx for your input,

RGH

*This post is locked for comments

  • Piotr Kalwasinski Profile Picture
    Piotr Kalwasinski 240 on at
    RE: Look Up Records set to Contact search instead Account?

    Hi,

    You can find a guidance on how to set the JS default views in the following article:

    [View:http://www.inogic.com/blog/2015/08/apply-custom-filter-on-lookup-field-in-dynamic-crm-using-script/:750:50]

    I hope this helps,

    Piotr

  • RGH Profile Picture
    RGH 60 on at
    RE: Look Up Records set to Contact search instead Account?

    Hi Rafael,

    thank you for your reply.

    I think I prefer to leave it as much vanilla as possible, so, I would prefer the first option. I can't write java codes out of the blue although I would be able to adjust them. Any idea where I can find a code that would be able to do what I'm looking for?

    Best,

    RGH

  • Suggested answer
    RE: Look Up Records set to Contact search instead Account?

    Hello,

    As far as I know, there is two options.

    1st solution : You can customize the appointment form and add some javascript code in order to put a custom filter on your Accounts/contacts lookup fiels with specific criteria.

    2nd solution : You can create a mimic of the actual lookups fields "Regarding", "Required" & "Optional" and hide the original ones on the form. On these custom fiels you just created, you can set your own filters with custom views. You can then add a workflow on post-execution mode that copy the record values on the primary lookups fields.

    Please let me know if it suits your needs.

    Best regards

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans