MICROSOFT GRAPH Create event function

The MICROSOFT GRAPH Create event function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Microsoft Graph connector function to create a calendar event.

For a full list of available functions, please read MICROSOFT GRAPH functions.


Description

The Create event function creates a new event in the authenticated user’s calendar via Microsoft Graph API. It supports setting attendees, location, and can automatically create a Microsoft Teams meeting link.


Setting it up

To use the Create event function, follow these instructions:

{{popups:rpas/add:action=microsoft-graph-create-event}}

Once on a process map:

  1. Navigate to the process where you would like to add the function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the MICROSOFT 365 Create event option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
ConnectorYesSelect-Select the Microsoft Graph connector to use
SubjectYesText-Event subject/title
StartYesText-Start time as JSON: {"dateTime":"2024-01-15T09:00:00","timeZone":"Africa/Johannesburg"}
EndYesText-End time as JSON: {"dateTime":"2024-01-15T10:00:00","timeZone":"Africa/Johannesburg"}
BodyNoTextarea-Event body/description
LocationNoText-Event location
AttendeesNoTextarea-List of attendee objects as JSON
Online MeetingNoSelectfalseCreate a Teams meeting link (true/false)
VariableYesText-Variable to store the created event

Output variables

VariableTypeDescription
VariableObjectThe created event with id, subject, start, end, webLink, and onlineMeeting details

Errors

  • Authentication failed – the connector token has expired or is invalid
  • Invalid date format – start or end time is not a valid date object
  • Insufficient permissions – the application lacks Calendars.ReadWrite permission

Tips

  • Set Online Meeting to true to auto-generate a Teams meeting link
  • Use variables in the subject and body, e.g. {meeting_topic}
  • Access the Teams link via {variable.onlineMeeting.joinUrl} after creation

Related functions

  • Update event – Update an existing calendar event
  • Delete event – Delete a calendar event
  • List events – List calendar events

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.