Alt-N Discussion Groups > MDaemon Discussion Groups > MDaemon API > Programmatic Access To Calendar Data From .NET

 [F] Alt-N Discussion Groups  / MDaemon Discussion Groups  / MDaemon API  /

Programmatic Access To Calendar Data From .NET

Hi, I'd like to create/read/update/delete a MDaemon users calendar events (appointments) in an automated way from a C#.NET application running on a computer that is not the same computer that MDaemon is running on.

I contacted tech support from the vendor that sold MDaemon to my client but they told me to post in the community forums because the dev(s) monitors the forums and that would be the best hope to get an answer to my query.

The use case is that a business that I've written custom management software for is using MDaemon and they want me to automatically create appointments in each users MDaemon calendar to sync up with the appointments stored in my custom software, which is also pushing those appointments to a google calendar successfully.

In looking through posts here and the documentation i first thought i could write a C# wrapper around the MDCalendar.dll C++ (COM?) library, however the documentation in the MDaemon\API\MDCalendar.html folder is incomplete and i couldn't find an online reference.
I also see here that there is an XML API but in looking at the .htm files in the XML API folder i don't see any reference to calendar events.
I did notice that the events appear to be stored in MDaemon\User\Domain\User\Calendar.imap, in the Calendar.mrk file and can be parsed, however i'm not sure it's safe to edit that file directly to create/edit events.

My question is what is the best method, if any, to interact with the MDaemon calendar programmatically?

  (older msg: 7)All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items

Ryan Tomko - Jan 30, 2020 5:14 pm (#8 Total: 11)  


Photo of Author
Ryan Tomko
Posts: 4
Thanks for the help, i've been able to successfully create and edit calendar events via the XML API from C#, after testing in Postman.

I've run into an issue with the "Item" last modified timestamp. It seems to be not using the timezone correctly when an edit is made in the web UI. Here are the steps to reproduce:

1) Edit an event using the website UI (see image)
2) Get the event from API with Postman and notice the lastModified value: "2020-01-30T16:04:50.000Z"
3) Edit the event subject using "put" via XML API in Postman

Notice that the lastModified when edited by Postman is the correct Zulu time (2020-01-30T22:08:28.394Z), but when edited directly in the web UI the timestamp is the local time (2020-01-30T16:04:50.000Z), not the Zulu time. This is incorrect.

Is this a bug in the web UI that can be fixed? I'm using the last modified timestamp to sync event data between MDaemon and another system and the last modified time lets me know which way to push or pull the data.

[Last Editor: Ryan Tomko, Jan 30, 2020 5:16 pm. Total Edits: 1]


  (newer msg:3)All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items


Read New | Search


Email to Admin

You are visiting as a Guest user.