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

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans