When using Get-BetaNotificationTemplates, it returns additional attributes slackTemplate and teamsTemplate which always seem to be null. ConvertFrom-BetaJsonToTemplateDto will not accept these parameters today in the JSON body that is passed, so you need to remove them first before being able to make this call successfully, which is required to call New-BetaNotificationTemplate -TemplateDto $dto. Just a small tedious thing when trying to move templates from one tenant to another.
When using
Get-BetaNotificationTemplates
, it returns additional attributesslackTemplate
andteamsTemplate
which always seem to be null.ConvertFrom-BetaJsonToTemplateDto
will not accept these parameters today in the JSON body that is passed, so you need to remove them first before being able to make this call successfully, which is required to callNew-BetaNotificationTemplate -TemplateDto $dto
. Just a small tedious thing when trying to move templates from one tenant to another.