Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

Populating lookup field in marketing form with data from custom entity

(0) ShareShare
ReportReport
Posted on by 135

I have a marketing form that has a lookup field to a custom entity of schools. Its just a list of School Names.
The form works but the lookup field does not populate any data and does not respond when entering text. Normally it would suggest hits while typing in the field.
If i publish a lookup filed to i.ex. a Company or any standard entity it works perfectly on the same form. My School lookup field is still unresponsive.
Starting to wonder if this is a bug or if custom entities are unsupported in form lookup fields.

Does anyone else have the same problem? Using D365 wave 2, 2019.
Any tips much appreciated

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Populating lookup field in marketing form with data from custom entity

    Hi Thomas,

    It is glad that your problem has been solved.

    Please feel free to ask any question.

    Regards,

    Clofly

  • Suggested answer
    TGT Profile Picture
    TGT 135 on at
    RE: Populating lookup field in marketing form with data from custom entity

    I double checked everything and what do you know - relevance search for the Skole entity was somehow not enabled.

    Added it to the relevance list and now it works.

    At least i learned something during this process. Thanks all for the feedback.

    Case closed

  • TGT Profile Picture
    TGT 135 on at
    RE: Populating lookup field in marketing form with data from custom entity

    I can confirm that we are on the same marketing version.

    The datalist element is generated but as i can see in your code it also contain data values. In mine the data-values are missing:

    datavlues.jpg

    i have activated relevance search for the entity in system and enabled the entity data for relevance search on the entity. 

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Populating lookup field in marketing form with data from custom entity

    Hi Thomas,

    What's the version of your marketing application? Mine is 1.35.10059.1039 and lookup form field works.

    Could you try follow steps:

    Firstly, have you published all customizations when selected Skole entity for relevance search?

    Secondly, please check whether a datalist element for lookup field is actually generated, with browser inspector.

    pastedimage1588730588001v1.png

    If the hidden element has been actually created, then type some keywords in lookup input field to check whether any options could display.

    By default, lookup field won't display any options, even if we focus cursor in it.

    e.g:

    There are 5 custom country entity records in my marketing app:

    pastedimage1588730981067v2.png

    If I type 'a' in the field, nothing happens, because there is no country name starts with 'a'.

    pastedimage1588731033002v3.png

    Only when I type 'c', then countries which contain 'c' character display.

    pastedimage1588731107103v4.png

    So try to type some keywords that could match existing records in Marketing app to make options appear.

    Regards,

    Clofly

  • TGT Profile Picture
    TGT 135 on at
    RE: Populating lookup field in marketing form with data from custom entity

    changing the form loader did not help

    Enabling relevance search on the intity and activate it in the system settings also did not help

    Updating is not possible at the moment because of other dependencies that need testing first.

    Any other tips, or must we just wait for testing and updating ?

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Populating lookup field in marketing form with data from custom entity

    Hi Thomas,

    Sorry I missed 's' for "Marketing Services User" when typing my answer.

    Please try these steps to make form lookup field could work:

    1. Change the form-loader.js to 1.59.1039.0(?v=1.59.1039.0)

    https://mktdplp102cdn.azureedge.net/public/latest/js/loader.js?v=1.59.1039.0

    2. Update your marketing application to latest version.

    3. Enable the relevance search on the entity in the solutions and activate it in the system settings.

    (2 & 3 are summed up from final reply in the thread.)

    Regards,

    Clofly

  • TGT Profile Picture
    TGT 135 on at
    RE: Populating lookup field in marketing form with data from custom entity

    Yes, i have set the custom entity as per. your recommendation. Still dead lookup field...

    school.jpg

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Populating lookup field in marketing form with data from custom entity

    Hi Thomas,

    As the first marked answer said in the thread below, have you set the custom entity organizational level accessibility?(Assign the privilege to Marketing Service User.)

    https://community.dynamics.com/365/marketing/f/dynamics-365-for-marketing-forum/381518/use-a-country-lookup-on-a-marketing-form

    Regards,

    Clofly

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…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,971 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,846 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans