Context interface
Represents structure of the received context message.
Properties
action |
Content Action Info |
app | Properties about the current session for your app |
channel | When running in the context of a Teams channel, provides information about the channel, else |
chat | When running in the context of a Teams chat, provides information about the chat, else |
dialog |
When |
meeting | When running in the context of a Teams meeting, provides information about the meeting, else |
page | Info about the current page context hosting your app |
sharepoint | When hosted in SharePoint, this is the SharePoint PageContext, else |
share |
When running in Teams for an organization with a tenant, provides information about the SharePoint site associated with the team.
Will be |
team | When running in Teams, provides information about the Team context in which your app is running.
Will be |
user | Info about the currently logged in user running the app.
If the current user is not logged in/authenticated (e.g. a meeting app running for an anonymously-joined partcipant) this will be |
Property Details
actionInfo
Note
This API is in Beta and provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Content Action Info
actionInfo?: ActionInfo
Property Value
app
channel
When running in the context of a Teams channel, provides information about the channel, else undefined
channel?: ChannelInfo
Property Value
chat
When running in the context of a Teams chat, provides information about the chat, else undefined
chat?: ChatInfo
Property Value
dialogParameters
When processActionCommand
activates a dialog, this dialog should automatically fill in some fields with information. This information comes from M365 and is given to processActionCommand
as extractedParameters
.
App developers need to use these extractedParameters
in their dialog.
They help pre-fill the dialog with necessary information (dialogParameters
) along with other details.
If there's no key/value pairs passed, the object will be empty in the case
dialogParameters: Record<string, string>
Property Value
Record<string, string>
meeting
When running in the context of a Teams meeting, provides information about the meeting, else undefined
meeting?: MeetingInfo
Property Value
page
sharepoint
When hosted in SharePoint, this is the SharePoint PageContext, else undefined
sharepoint?: any
Property Value
any
sharePointSite
When running in Teams for an organization with a tenant, provides information about the SharePoint site associated with the team.
Will be undefined
when not running in Teams for an organization with a tenant.
sharePointSite?: SharePointSiteInfo
Property Value
team
When running in Teams, provides information about the Team context in which your app is running.
Will be undefined
when not running in Teams.
team?: TeamInfo
Property Value
user
Info about the currently logged in user running the app.
If the current user is not logged in/authenticated (e.g. a meeting app running for an anonymously-joined partcipant) this will be undefined
.
user?: UserInfo