Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

How do you handle null date values via API ?

(1) ShareShare
ReportReport
Posted on by 69

Hello,

we provide data via API interface. In our case some date fields are NULL. These NULL values are represented as 0001-01-01 in the API. When trying to write the data to a SQL database, we get an error because the min. date is 1753-01-01.

How do you handle such problems ?

Kind Regards

  • Suggested answer
    Andy Sather Profile Picture
    Andy Sather on at
    RE: How do you handle null date values via API ?

    Hello - I found a similar message on a different Microsoft Community (power automate).  Not sure if you can apply the same workaround: powerusers.microsoft.com/.../420710

    You can also reach out to our Developer Support on our Yammer for assistance as well:

    www.yammer.com/dynamicsnavdev

  • Hinnack Profile Picture
    Hinnack 69 on at
    RE: How do you handle null date values via API ?

    For more clarity:

    With NULL values are actually meant 0D values

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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans