Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Filtered Lookup by State

(0) ShareShare
ReportReport
Posted on by

Apparently I'm too stupid to figure this out. I need to do a simple filtered look up by state. I have listed all 3 names because I'm not sure which to use where in the code.

On my form I want to

1: Look into "Address" (as shown on form) "Address 1" (Display Name) "address1_composite" (Name) find the state,

2: Then under "Dealer Account" (as shown on form) "Dealer Name" (Display Name) "new_dealeraccount" (Name) look up/search for dealer accounts in that state

3: Based on the dealer chosen select a contact from that dealer

I'm sure this is simple, but I have spent hours failing at this. Please tell me step by step what to do. If you are going to point me to an example online please tell me exactly which part goes where, I am beyond lost.Lead-picture.PNG

*This post is locked for comments

  • RE: Filtered Lookup by State

    I was attempting to do this via JS. Is there a benefit of doing it this way vs script?

  • Verified answer
    PS Profile Picture
    PS 23,577 on at
    RE: Filtered Lookup by State

    Assuming 'State' is a lookup field in your CRM.

    If not, make it a lookup; that would make your work a lot easier.

    Go to form editor>>Double click 'Dealer Account'>>select only related accounts State (Dealer)

    Do it for Dealer Contacts as well

    Go to form editor>>Double click 'Dealer Contact'>>select only related contact Contact (Dealer Account)

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

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... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans