{Advanced Code Tip} How to query based on Customer field type in Dynamics 365

Requirement: In one of our recent projects new field type: Customer is being utilized in Case entity (It is available out of box). There was an additional need to be able to query case entity on the basis of Customer field type.

Note: For customer field type, I had written a blog a while back describing this field type :

Customer field type


Following code can be used to query on the basis of customer field type:


Hope it helps and happy 365ing!

Any problem in CRM – end user,Microsoft  partner or an individual?

Problem Area – Technical, Functional, Training, Development or consulting?

I am here to help, get in touch here: Click here



Twitter: https://twitter.com/msdynamicsblog
LinkedIn: https://www.linkedin.com/in/deepesh-somani-00296932

Google Play Store:



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s