Logout

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: 8)All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items

Keith Personett (apparently) - Jan 30, 2020 8:14 pm (#9 Total: 11)  

via email  

Photo of Author
Keith Personett
Newbie
Newbie
Posts: 76
Ryan,

As long as the lastModified stamp is different from what you've previously recorded, the the item has changed. It is probably a difference between Local time and Zulu (GMT) time.

Keith Personett
Senior Software Developer, Cerebro Calibration Specialist, Agent of S.H.I.E.LD., Helicarrier Systems Analyst
MDaemon Technologies http://www.mdaemon.com/ or on Facebook
Sent using Outlook 2013 via ActiveSync Services for MDaemon Messaging Server.


"If you try to escape, or play any sort of games with me, I will taze you and watch Supernanny while you drool into the carpet."
    -- Agent Phil Coulson, S.H.I.E.L.D.

From: Ryan Tomko
Sent: ‎1/‎30/‎2020 16:14
To: md-api List Member
Subject: [md-api] Programmatic Access To Calendar Data From .NET


From : Ryan Tomko [lists-md-api@mdaemon.com]
To : md-api List Member [md-api@mdaemon.com]
Date : Thursday, January 30 2020 16:14:25
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 (see image)
2) Check values from API with Postman:
<MDaemon>
    <API>
        <Request verbose="0" echo="1" version="19.5.3">
            <Operation>ItemOperation</Operation>
            <Parameters>
                <Item action="get" type="event" path="PRIVATE/Calendar" ID="12"/>
            </Parameters>
        </Request>
        <Response version="19.5" session="08DD5D9C" et="0.002958">
            <Status id="0" value="0x00000000" message="The operation completed successfully."/>
            <ServiceVersion>19.5.3.7</ServiceVersion>
            <Result>
                <Item action="get" path="PRIVATE/Calendar" ID="12" type="event" lastModified="2020-01-30T16:04:50.000Z">
                    <Private>No</Private>
                    <AllDay>No</AllDay>
                    <Priority>1</Priority>
                    <ReminderSet>No</ReminderSet>
                    <ReminderMin>0</ReminderMin>
                    <Sequence>0</Sequence>
                    <AppointmentLocation>No</AppointmentLocation>
                    <TentativePlaceholder>No</TentativePlaceholder>
                    <BusyStatus>2</BusyStatus>
                    <IntendedBusyStatus>2</IntendedBusyStatus>
                    <Subject length="6">
                        

Attachment: step1.png



View/reply at Programmatic Access To Calendar Data From .NET

--MD-API-------------------------------------------------------------
This list is for questions and discussions regarding MDAEMON's API.
To unsubscribe from this mailing list send an email to
md-api-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!------------------------------------------------

---------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user 
support and discussion.  MDaemon staff members may participate in the 
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical 
support please use the form here:
http://www.mdaemon.com/support/request_support.asp
---------------------------------------------------------------------

Replies to this message
  • Ryan Tomko (Feb 5, 2020 11:13 am)




  •   (newer msg:2)All MessagesOldest ItemsOlder ItemsNewer ItemsNewest Items



     Content:

    Read New | Search

     Guest:

    Email to Admin



    You are visiting as a Guest user.