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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

How to pass DateTime json to a creation API

(1) ShareShare
ReportReport
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/,
}
I have the same question (0)
  • Martin Dráb Profile Picture
    235,796 Most Valuable Professional on at
    How to pass DateTime json to a creation API
    Moved from Dynamics 365 general forum.
  • Community member Profile Picture
    2 on at
    How to pass DateTime json to a creation API
    Sales.
  • Leah Ju Profile Picture
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 141

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 132

#3
DAnny3211 Profile Picture

DAnny3211 130

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans