Defines the notifications your app posts to the user's activity feed in Teams.
Properties that reference this object type:
Syntax
{
"activityTypes": [
{
"type": "{string}",
"description": "{string}",
"templateText": "{string}",
"allowedIconIds": [
"{string}"
]
}
],
"activityIcons": [
{
"id": "{string}",
"iconFile": "{string}"
}
]
}
{
"type": "object",
"properties": {
"activityTypes": {
"type": "array",
"description": "Specify the types of activites that your app can post to a users activity feed",
"maxItems": 128,
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"maxLength": 32
},
"description": {
"type": "string",
"maxLength": 128
},
"templateText": {
"type": "string",
"maxLength": 128
},
"allowedIconIds": {
"type": "array",
"description": "An array containing valid icon IDs per activity type.",
"maxItems": 50,
"items": {
"type": "string"
}
}
},
"required": [
"type",
"description",
"templateText"
],
"additionalProperties": false
}
},
"activityIcons": {
"type": "array",
"description": "Specify the customized icons that your app can post to a users activity feed",
"maxItems": 50,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 64,
"description": "Represents the unique icon ID."
},
"iconFile": {
"type": "string",
"maxLength": 128,
"description": "Represents the relative path to the icon image. Image should be size 32x32."
}
},
"required": [
"id",
"iconFile"
],
"additionalProperties": false
}
}
},
"additionalProperties": false
}
{
"activityTypes": [
{
"type": "{string}",
"description": "{string}",
"templateText": "{string}",
"allowedIconIds": [
"{string}"
]
}
],
"activityIcons": [
{
"id": "{string}",
"iconFile": "{string}"
}
]
}
{
"type": "object",
"properties": {
"activityTypes": {
"type": "array",
"description": "Specify the types of activites that your app can post to a users activity feed",
"maxItems": 128,
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"maxLength": 64
},
"description": {
"type": "string",
"maxLength": 128
},
"templateText": {
"type": "string",
"maxLength": 128
},
"allowedIconIds": {
"type": "array",
"description": "An array containing valid icon IDs per activity type.",
"maxItems": 50,
"items": {
"type": "string"
}
}
},
"required": [
"type",
"description",
"templateText"
],
"additionalProperties": false
}
},
"activityIcons": {
"type": "array",
"description": "Specify the customized icons that your app can post to a users activity feed",
"maxItems": 50,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 64,
"description": "Represents the unique icon ID."
},
"iconFile": {
"type": "string",
"maxLength": 128,
"description": "Represents the relative path to the icon image. Image should be size 32x32."
}
},
"required": [
"id",
"iconFile"
],
"additionalProperties": false
}
}
},
"additionalProperties": false
}
{
"activityTypes": [
{
"type": "{string}",
"description": "{string}",
"templateText": "{string}"
}
]
}
{
"type": "object",
"properties": {
"activityTypes": {
"type": "array",
"description": "Specify the types of activites that your app can post to a users activity feed",
"maxItems": 128,
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"maxLength": 64
},
"description": {
"type": "string",
"maxLength": 128
},
"templateText": {
"type": "string",
"maxLength": 128
}
},
"required": [
"type",
"description",
"templateText"
],
"additionalProperties": false
}
}
},
"additionalProperties": false
}
Properties
activityTypes
Array of objects representing activity notifications that your app can post to a user's activity feed in Teams. The systemDefault
activity type is a reserved value and invalid for use.
Constraints
Maximum array items: 128.
activityIcons
Specify the customized icons that your app can post to a users activity feed
Constraints
Maximum array items: 50.
Examples
{
"activities": {
"activityTypes": [
{
"type": "taskCreated",
"description": "Task created activity",
"templateText": "<team member> created task <taskId> for you"
},
{
"type": "userMention",
"description": "Personal mention activity",
"templateText": "<team member> mentioned you"
}
]
},
}