Skip to main content

Templateteams

Properties

NameTypeDescriptionNotes
KeyStringThe template key[optional]
TitleStringThe title of the Teams message[optional]
TextStringThe main text content of the Teams message[optional]
MessageJSONStringJSON string of the Teams adaptive card[optional]
IsSubscriptionBooleanWhether this is a subscription notification[optional] [default to $false]
ApprovalIdStringThe approval request ID[optional]
RequestIdStringThe request ID[optional]
RequestedByIdStringThe ID of the user who made the request[optional]
NotificationTypeStringThe type of notification[optional]
AutoApprovalDataTemplateslackAutoApprovalData[optional]
CustomFieldsTemplateslackCustomFields[optional]

Examples

  • Prepare the resource
$Templateteams = Initialize-Templateteams  -Key null `
-Title null `
-Text You have a new approval request `
-MessageJSON null `
-IsSubscription null `
-ApprovalId null `
-RequestId null `
-RequestedById null `
-NotificationType null `
-AutoApprovalData null `
-CustomFields null
  • Convert the resource to JSON
$Templateteams | ConvertTo-JSON

[Back to top]