Skip to main content

Sendtestnotificationrequestdto

Properties

NameTypeDescriptionNotes
KeyStringThe template notification key.[optional]
MediumEnum [ "EMAIL", "SLACK", "TEAMS" ]The notification medium. Has to be one of the following enum values.[optional]
LocaleStringThe locale for the message text.[optional]
Context[SystemCollectionsHashtable]https://learn.microsoft.com/en-us/dotnet/api/system.collections.hashtable?view=net-9.0A Json object that denotes the context specific to the template.[optional]
RecipientEmailList[]StringA list of override recipient email addresses for the test notification.[optional]
CarbonCopy[]StringA list of CC email addresses for the test notification.[optional]
BlindCarbonCopy[]StringA list of BCC email addresses for the test notification.[optional]

Examples

  • Prepare the resource
$Sendtestnotificationrequestdto = Initialize-Sendtestnotificationrequestdto  -Key cloud_manual_work_item_summary `
-Medium EMAIL `
-Locale en `
-Context {"numberOfPendingTasks":"4","taskTasks":"tasks"} `
-RecipientEmailList ["test@example.com"] `
-CarbonCopy ["cc@example.com"] `
-BlindCarbonCopy ["bcc@example.com"]
  • Convert the resource to JSON
$Sendtestnotificationrequestdto | ConvertTo-JSON

[Back to top]