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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Null value for Customer Datatype

(0) ShareShare
ReportReport
Posted on by

Hi,

As one knows, D365 has newly introduced datatype as Customer for lookup to either Account or Contact on a custom field of another entity, question is can it hold a blank/null value when the form is loaded for Create record and keeping existing selected value earlier for editing?

Any thoughts?

Thanks

Nikhil

I have the same question (0)
  • Verified answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    I didn't understand completely your question, but customer type because it's a lookup can hold null value (so inside UI it will be shown as empty)

    hope it helps

  • Community Member Profile Picture
    on at

    Never Mind Guido, thanks for your reply.

    I am still not sure why blank or null value is not displayed inside that lookup which was of Customer datatype, it was showing related contact in that field, could be a mapping issue.

    I tried by inserting similar kind of field and it was showing blank to begin with.

    I managed to workaround with JS by pro-grammatically setting up as null.

    Marking this thread as closed by verifying your answer.

    Thanks

    Nikhil

  • Verified answer
    Community Member Profile Picture
    on at

    Hi Niku123,

    I can understand "hold a blank/null value when the form is loaded for Create record"

    The customer field is null in the new creating record:

    pastedimage1639557118095v1.png

    But what "keeping existing selected value earlier for editing?" is meaning for?

    It can show recent records by default:

    pastedimage1639557439771v2.png

    Ensure the 'turn off automatic resolutions in the field' and 'Disable most recently used items for this field' options are unchecked.

    pastedimage1639557737091v3.png

  • Community Member Profile Picture
    on at

    Hi Leah,

    Let me explain, I've a contact entity with xyz value, ok?

    I've Consent entity which is related to Contact.

    Consent entity has two fields of Customer datatype or lookup which are Client and Who.

    Why does Client and Who fields of consent entity hold value of parent contact and not blank to begin with?

    I'm not sure since I tried by inserting similar field and it was showing blank so issue is elsewhere or mapping.

    Thanks for your help.

    Regards

    Nikhil

  • Community Member Profile Picture
    on at

    Hi Niku123,

    I got it now.

    You can check relationship mapping or business rule or js.

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    Your question is unclear. Can you please elaborate in detail.

    For New create record, customer lookup field will be blank only.

    For Edit/Update record, Customer lookup will show existing selected value.

    formContext.getAttribute("field logical name").setValue(null); - This will set the lookup field with null/blankvalue.

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 71

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans