web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Cascading Lookup fields in Marketing forms

(1) ShareShare
ReportReport
Posted on by 22

This MS Documentation page shows how to create a cascading lookup for OPTION SETS.  This section on that same page shows one very very basic example of how to do this with lookup fields.  However, the particular API call in that example fillLookupFromSearch() looks like it is probably just searching the display text.  That's probably not going to meet most developers' requirements.

In my team's case, we need to filter a list of COUNTIES based on the STATE lookup.  So we'd need to filter on another field of the County record.

I have so far been unable to find reference documentation for the Marketing Javascript API or the fillLookupFromSearch() function in particular to see if there's a way to achieve this. Is there just no API reference available yet?

I have the same question (0)
  • Nya Profile Picture
    29,060 on at

    Hi,

    As far as I know, there is no such API.

    Maybe you could raise a support ticket for further help.

  • JV_FLA Profile Picture
    22 on at

    Nya, if you had clicked the link in the post, you would see a section labeled "Set lookup fields via API" and from that section I quote:  "You can use the JavaScript API to perform a search request in the background..."

  • Suggested answer
    Petr Jantac Profile Picture
    Moderator on at

    Hello,

    We are working on new documentation for filtering (cascading) Lookup fields. It will be publicly available by the end of June.

    Petr

  • Suggested answer
    Petr Jantac Profile Picture
    Moderator on at

    The documentation on how to build a lookup field filtered by another field can be found here:

    Filter cities based on countries using lookup fields and custom entities (Dynamics 365 Marketing Developer Guide) | Microsoft Docs

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 61 Super User 2025 Season 2

#2
Satyam Prakash Profile Picture

Satyam Prakash 24

#2
Eugen Podkorytov Profile Picture

Eugen Podkorytov 24

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans