AdhocAdam / smletsexchangeconnector

SMLets PowerShell based Exchange Connector for controlling Microsoft System Center Service Manager 2016+
https://adhocadam.github.io/smletsexchangeconnector/
GNU General Public License v3.0
29 stars 19 forks source link

Get-TemplatesByMailbox: incorrect variable name ($scsmEmail) #175

Closed TomH-OpsDev closed 4 years ago

TomH-OpsDev commented 4 years ago

Describe the bug A variable, $scsmEmail, is used in the Get-TemplatesByMailbox function, where $workflowEmailAddress should have been used instead.

Help us reproduce the bug Version of the connector you are using: 1.4.6 Features/variables you have enabled (i.e. $enableAzureCognitiveServicesForNewWI): $useMultipleMailboxes

Expected behavior A clear and concise description of what you expected to happen. The Get-TemplatesByMailbox function will work as designed for all users.

Location and Environment Where are you running this from? Task Scheduler? SMA? Workflow server?: SMA What SCSM version are you running? (i.e. 2012R2, 2016, 2016 UR3, 1801, etc.): 2019

Additional context https://community.cireson.com/discussion/comment/20850#Comment_20850

AdhocAdam commented 4 years ago

Workaround In the Get-TemplatesByMailbox function, replace the $scsmEmail variable with $workflowEmailAddress

AdhocAdam commented 4 years ago

To be released with #180 and #181