Retrieving events via API | MDaemon Technologies, Ltd.

Retrieving events via API


  • I need to get user event from Mdaemon calendar.
    I'm looking for API command which can get an events list beetween 2 dates. It' seems I only can search with 'lastmodified' event field but not with start event date for example.
     
    The code I use :
    <? xml version= " 1.0 " encoding= " UTF-8 " standalone= " no " ?>
    < MDaemon >
      < API >
        < Request >
          < Operation > FolderOperation </ Operation >
          < Parameters >
            < Folder action= " get " comments= " true " itemaction= " list " itemfilterdate= " 2024-01-01T00:00:00.000Z " itemfiltertype= " gt " itemorder= " sequential " path= " PRIVATE/Calendrier " />
          </ Parameters >
        </ Request >
      </ API >
    </ MDaemon >
     
    Is there an other way which match event date and not lastmodified date ?
     


  • What version of MDaemon are you using?  There is a search action for FolderOperation, prior to MDaemon 24.5.0 it can only be used to search mail folders.  In 24.5.0 and newer it can be used to also search PIM items and can search based on start and end dates of the event.

    <?xml version="1.0" encoding="utf-8"?>
    <MDaemon>
    	<API productversion="24.5.0" serviceversion="24.5.0.1">
    		<Request version="24.5" echo="1" verbose="0">
    			<Operation>FolderOperation</Operation>
    			<Parameters>
    				<Folder account="user@domain.int" action="search" _rIdx="0" path="MAILBOX/Calendar" class="IPF.Appointment" children="true" searchid="1">
    					<Search field="Start" filtertype="gte" datetime="2018-01-01T00:00:00.000Z"/>
    					<Search field="End" filtertype="lte" datetime="2022-01-01T00:00:00.000Z"/>
    					<Search field="Categories" filtertype="contains" string="e"/>
    					<Search field="Attendee" filtertype="contains" string="externaldomain.com"/>
    					<Search field="Attendee" filtertype="equ" string="user@otherdomain.com"/>
    					<Search field="Attendee" filtertype="doesnotcontain" string="otheruser@otherdomain.com"/>
    					<Search field="Attendee" filtertype="neq" string="otheruser2@otherdomain.com"/>
    				</Folder>
    			</Parameters>
    		</Request>
          </API>
    </MDaemon>

    The help and samples do not include this information, we will update them for a future version.

     


Please login to reply this topic!