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 CRM (Archived)

What is the data type for "Date of birth" field?

(0) ShareShare
ReportReport
Posted on by

When sending data to client. we were getting response like below.

The deserializer has no knowledge of any type that maps to this name. Consider changing the implementation of the ResolveName method on your DataContractResolver to return a non-null value for name 'DateOnly' and namespace ''.'.  Please see InnerException for more details.

The input request is

<a:KeyValuePairOfstringanyType>
<b:key>uor_dateofbirth</b:key>
<b:value i:type="c:DateOnly">01-02-21</b:value>
</a:KeyValuePairOfstringanyType>

Can you please suggest on this?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    TheMarkChristie Profile Picture
    10,328 Moderator on at

    If it is using the standard field on the contact it is as follows

    2017_2D00_11_2D00_01-08_5F00_36_5F00_53.png

  • Community Member Profile Picture
    on at

    Hi Mark Christie,

    We have no access to check this. client was confirmed dateonly format and 'YYYY-MM-DD'.

    Here the question is how to send date format from our code. like c:string, c:int same we need for dateonly not for datetime.

    hope you understand my question.

    Thanks in advance.

    <s:Body>

       <Execute

           xmlns="schemas.microsoft.com/.../Services&quot;

           xmlns:i="www.w3.org/.../XMLSchema-instance&quot;>

           <request i:type="a:CreateRequest"

               xmlns:a="schemas.microsoft.com/.../Contracts&quot;>

               <a:Parameters

                   xmlns:b="schemas.datacontract.org/.../System.Collections.Generic&quot;>

                   <a:KeyValuePairOfstringanyType>

                       <b:key>Target</b:key>

                       <b:value i:type="a:Entity">

                           <a:Attributes>

                               <a:KeyValuePairOfstringanyType>

                                   <b:key>uor_firstname</b:key>

                                   <b:value i:type="c:string"

                                       xmlns:c="www.w3.org/.../XMLSchema&quot;>SuganyaSuk

                                   </b:value>

                               </a:KeyValuePairOfstringanyType>

                               <a:KeyValuePairOfstringanyType>

                                   <b:key>uor_lastname</b:key>

                                   <b:value i:type="c:string"

                                       xmlns:c="www.w3.org/.../XMLSchema&quot;>OctFour

                                   </b:value>

                                   <a:KeyValuePairOfstringanyType>

                                       <b:key>uor_dateofbirth</b:key>

                                       <b:value i:type="c:dateOnly">2021-02-01</b:value>

                                   </a:KeyValuePairOfstringanyType>

                               </b:value>

                           </a:KeyValuePairOfstringanyType>

                       </a:Parameters>

                       <a:RequestId i:nil="true" />

                       <a:RequestName>Create</a:RequestName>

                   </request>

               </Execute>

           </s:Body>

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans