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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
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

I have the same question (0)
  • Verified answer
    cloflyMao Profile Picture
    25,210 on at

    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

  • TGT Profile Picture
    135 on at

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

    school.jpg

  • cloflyMao Profile Picture
    25,210 on at

    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
    135 on at

    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
    25,210 on at

    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
    135 on at

    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. 

  • Suggested answer
    TGT Profile Picture
    135 on at

    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

  • cloflyMao Profile Picture
    25,210 on at

    Hi Thomas,

    It is glad that your problem has been solved.

    Please feel free to ask any question.

    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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans