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
Are there any instances where Label4.Text is blank? A blank 'To' parameter of the SendEmailV2 action would cause an error.
You can extend a Switch statement to have a default value if no other clauses are met. I should have added it previously, apologies.
Switch(DataCardValue3.Selected.Value,
"Coaching Request", "[email protected]",
"Training Request", "[email protected]",
"General Request", "[email protected]",
"[email protected]")
Else, feel free to post an image of the error and will see if I can help further.