Forum Discussion
Syndicate_Admin
3 years agoAdministrator
Help with this error. method 'SendEmailV2' has an invalid value for parameter 'To'
So i have a label which the email refers to but now for some reason it is throwing this error. Office365Outlook.SendEmailV2(Label4.Text,"A Learning request has been lodged") And in the label4, I have...
Syndicate_Admin
3 years agoAdministrator
I'd agree with @v-xiaochen-msft's suggestion but streamline the if statement in Label4 to use a Switch instead - especially if you have to add more scenario's in future
Switch(DataCardValue3.Selected.Value,
"Coaching Request", "[email protected]",
"Training Request", "[email protected]",
"General Request", "[email protected]")