Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

How to pass DateTime json to a creation API

Posted on by 2
I got below error:
 
Microsoft.OData.ODataException: A value was encountered that has a type name that is incompatible with the metadata. The value specified its type as 'Edm.String', but the type specified in the metadata is 'Edm.DateTimeOffset'.
 
My input Json String looks like:
 
{
     /@odata.context/:/$metadata#appointments/$entity/,
    /scheduledStartDatetime/: /2023-12-28T06:36:12Z/,
    /scheduledEndDatetime/: /2023-12-28T06:36:12Z/,
}
  • Martin Dráb Profile Picture
    Martin Dráb 229,993 Most Valuable Professional on at
    How to pass DateTime json to a creation API
    Moved from Dynamics 365 general forum.
  • How to pass DateTime json to a creation API
    Sales.
  • Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    How to pass DateTime json to a creation API
    Hi Partner,
    Could you tell me what app you are suing in Dynamics 365? Sales, Customer service or Finance?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,151 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,993 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans