Skip to main content

Notifications

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?

  • Suggested answer
    Petr Jantac Profile Picture
    Petr Jantac on at
    RE: Cascading Lookup fields in Marketing forms

    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

  • Suggested answer
    Petr Jantac Profile Picture
    Petr Jantac on at
    RE: Cascading Lookup fields in Marketing forms

    Hello,

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

    Petr

  • JV_FLA Profile Picture
    JV_FLA 22 on at
    RE: Cascading Lookup fields in Marketing forms

    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..."

  • Nya Profile Picture
    Nya 29,058 on at
    RE: Cascading Lookup fields in Marketing forms

    Hi,

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

    Maybe you could raise a support ticket for further help.

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…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans