Workflow - create Office 365 calendar entries

  • 11 December 2020
  • 0 replies
  • 19 views

Badge +1

We have a system built in Sharepoint with Nintex workflows.


It is a leave request system. It’s all working other than the final part which creates a calendar appointment in the persons calendar/managers calendar/shared office calendar.

 

I am wondering whether this has something to do with Office 365 as it’s only stopped working recently.

 

We have a Microsoft Exchange connection set up in the workflow which creates the object via XML.

It uses the URL: https://mymailbox.XXXX.com/ews/exchange.asmx
We have a username that creates the appointments.

Would anyone have any idea how we can get this working again?

 

The XML code below is what we use to create the appointment in the persons calendar:

 

<?xml version="1.0" encoding="utf-16"?>
<CreateItemType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SendMeetingInvitations="SendToNone">
<SavedItemFolderId xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<DistinguishedFolderId Id="calendar" xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
<Mailbox>
<EmailAddress>{Common:Initiator}</EmailAddress>
<MailboxType>Mailbox</MailboxType>
</Mailbox>
</DistinguishedFolderId>
</SavedItemFolderId>
<Items xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<CalendarItem xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
<ItemClass>IPM.Appointment</ItemClass>
<Subject>{Common:InitiatorsDisplayName} - {ItemProperty:Leave_x0020_Type} - {ItemProperty:HalfDay}</Subject>
<Body BodyType="Text">Approved leave - {ItemProperty:Title}</Body>
<Location>Out of office</Location>
<Importance>Normal</Importance>
<MeetingTimeZone TimeZoneName="UTC"/>
<Start>{WorkflowVariable:Start}</Start>
<End>{WorkflowVariable:End}</End>
<IsAllDayEvent>true</IsAllDayEvent>
</CalendarItem>
</Items>
</CreateItemType>


0 replies

Be the first to reply!

Reply