Get Event Item
Resource links:
List Event - MS Graph documentation
Required OAuth scope (least to most privilege):
Calendars.Read Calendars.ReadWrite
Related Sample
This example uses Get Calendar List and Get Event List to provide the calendar id and event id input to the view-calendar-event-details jig.

Examples and code snippets
When using the code and samples in this topic, remember that they are designed to function as part of a comprehensive solution. To fully benefit from the intended functionality and ensure compatibility, it is recommended that you use the entire solution rather than selecting individual components in isolation. Alternatively, you can use these samples as a guide to understand the underlying concepts and MS Graph API, which can help you integrate similar solutions into your projects more effectively. The entire MS Graph solution is available on GitHub.
General
name: ms-graph-demonstrator
title: MS Graph Demonstrator
description: A solution using Microsoft Graph APIs .
category: business
onLoad:
type: action.execute-action
options:
action: full-sync
onRefresh:
type: action.execute-action
options:
action: full-sync
expressions:
today: =$substring($now(), 0, 10)
todayStart: =$toMillis($today)
weekdayStr: =$floor($todayStart/86400000)
weekdayNum: =($weekdayStr + 4) % 7
startOfWeek: =$todayStart - ($weekdayNum * 86400000)
thisWeek: =$startOfWeek + 604800000
next7: =$number($todayStart) + 604800000
tabs:
home:
jigId: home
icon: hometitle: Home
type: jig.grid
children:
- type: component.grid-item
options:
size: 2x2
children:
type: component.jig-widget
options:
jigId: view-user-jigx
widgetId: profileImage
- type: component.grid-item
options:
size: 2x2
children:
type: component.jig-widget
options:
jigId: calendar-summary
widgetId: nextDays
- type: component.grid-item
when: =$boolean(@ctx.datasources.next-meeting.locationAddress)
options:
size: 4x2
children:
type: component.jig-widget
options:
jigId: next-meeting
widgetId: meeting-location
- type: component.grid-item
options:
size: 2x2
children:
type: component.jig-widget
options:
jigId: list-email-messages
- type: component.grid-item
options:
size: 2x2
children:
type: component.jig-widget
options:
jigId: list-task-lists
widgetId: taskList
- type: component.grid-item
options:
size: 4x2
children:
type: component.jig-widget
options:
jigId: items-trending
widgetId: trendingFunctions
MS Graph Event Item function in GitHub.
provider: DATA_PROVIDER_REST
method: GET
url: https://graph.microsoft.com/v1.0/users/{userId}/calendars/{calendarId}/events/{calendarEventId}
outputTransform: $
parameters:
accessToken:
location: header
required: true
type: string
value: microsoft.OAuth # Use manage.jigx.com to define credentials for your solution
userId:
type: string
location: path
required: true
calendarId:
type: string
location: path
required: true
calendarEventId:
type: string
location: path
required: true
forRowsWithValues:
id: calendarEventIdJigs
MS Graph Calendar Events jig in GitHub.
title: [email protected]
type: jig.default
header:
type: component.jig-header
options:
height: small
children:
type: component.image
options:
source:
uri: https://support.content.office.net/en-us/media/f1c4b693-4670-4e7a-8102-bbf1749e83fe.jpg
children:
- type: component.entity
options:
children:
- type: component.entity-field
options:
label: Location
value: [email protected]
- type: component.field-row
options:
children:
- type: component.entity-field
options:
label: Day
value: =$fromMillis($toMillis(@ctx.jig.inputs.evtFrom), '[MNn] [D], [Y]', @ctx.system.timezone.offset)
- type: component.entity-field
options:
label: Time
value: |
= $fromMillis($toMillis(@ctx.jig.inputs.evtFrom), '[h]:[m01] [PN]', @ctx.system.timezone.offset)
& " to " &
$fromMillis($toMillis(@ctx.jig.inputs.evtTo), '[h]:[m01] [PN]', @ctx.system.timezone.offset)
- type: component.entity-field
options:
label: Online Meeting
value: [email protected]
contentType: link
href: [email protected]
isTrackingTransparencyRequired: false
isHidden: [email protected]? false:true
- type: component.entity-field
options:
label: Summary
value: [email protected]
isMultiline: true
- type: component.expander
options:
isInitiallyCollapsed: true
header:
centerElement:
type: component.titles
options:
title: Task Message (Expand to Read)
children:
- type: component.web-view
options:
isTrackingTransparencyRequired: false
height: 400
content: |
=("
<html>
<head>
<meta name=" & "'" & "viewport" & "'" & " content=" & "'" & "width=device-width, " & "initial-scale=1" & "'" & "/>
</head>
<body>"
& @ctx.jig.inputs.bodyContent
& "</body>
</html>")
- type: component.list
options:
data: [email protected]
maximumItemsToRender: 8
item:
type: component.list-item
options:
title: [email protected]
divider: solid
subtitle: "='Status: ' & @ctx.current.item.status.response"
label:
title: [email protected]
color:
- when: [email protected] = 'required'
color: color2
- when: [email protected] != 'required'
color: color7
leftElement:
element: avatar
text: =$uppercase(@ctx.current.item.emailAddress.name)
actions:
- children:
- type: action.open-url
options:
title: Join Meeting
url: [email protected]
isHidden: |
[email protected]? false: true
preview:
header:
type: component.jig-header
options:
height: small
children:
type: component.image
options:
source:
uri: https://support.content.office.net/en-us/media/f1c4b693-4670-4e7a-8102-bbf1749e83fe.jpg
isCompact: false
children:
- type: component.entity
options:
children:
- type: component.entity-field
options:
label: Subject
value: [email protected]
contentType: default
- type: component.field-row
options:
children:
- type: component.entity-field
options:
label: Day
value: =$fromMillis($toMillis(@ctx.jig.inputs.evtFrom), '[MNn] [D], [Y]', @ctx.system.timezone.offset)
- type: component.entity-field
options:
label: Time
value: |
= $fromMillis($toMillis(@ctx.jig.inputs.evtFrom), '[h]:[m01] [PN]', @ctx.system.timezone.offset)
& " to " &
$fromMillis($toMillis(@ctx.jig.inputs.evtTo), '[h]:[m01] [PN]', @ctx.system.timezone.offset)
- type: component.entity-field
options:
label: Summary
value: [email protected]
isMultiline: true
- type: component.web-view
options:
isTrackingTransparencyRequired: false
height: 400
content: |
=("
<html>
<head>
<meta name=" & "'" & "viewport" & "'" & " content=" & "'" & "width=device-width, " & "initial-scale=1" & "'" & "/>
</head>
<body>"
& @ctx.jig.inputs.bodyContent
& "</body>
</html>")
actions:
# - when: [email protected] = 1
- children:
- type: action.open-url
options:
title: Join Meeting
url: [email protected]
isHidden: |
[email protected]? false: trueSee Also
Last updated
Was this helpful?