Hello everyone,
I've got a Dropdown box and would like to send a seperate email based on a selected item. I know i have to use the If statement but how?
Office365Outlook.SendEmailV2("name@domain.com","Title","<h1>Hardware Request</h1>"&"<b>Requester: </b>"&SelectedName.DisplayName&"<b>Hardware: </b>"&DropdownH.Selected.Value&",{Cc:SelectedName.Mail&";});Reset(DropdownH);Navigate(Home)
So when i select a hardware mouse or keyboard a mail goes to the servicedesk, but when i select a laptop or monitor the mail must go to a manager 😉
Thank you in advance for any help!
Solved! Go to Solution.
You could set a variable before the Office365Outlook.SendEmailV2 with the correct SendTo email address and then use that in the Office365Outlook.SendEmailV2 call.
Here is an example. You would need to change the ServiceDesk.Mail and Manager.Mail to the correct values.
Set(varSendTo, If(DropdownH.Selected.Value = "mouse" Or DropdownH.Selected.Value = "keyboard", ServiceDesk.Mail, Manager.Mail);
Office365Outlook.SendEmailV2(varSendTo,"Title","<h1>Hardware Request</h1>"&"<b>Requester: </b>"&SelectedName.DisplayName&"<b>Hardware: </b>"&DropdownH.Selected.Value&",{Cc:SelectedName.Mail&";});Reset(DropdownH);Navigate(Home)
User | Count |
---|---|
196 | |
125 | |
88 | |
49 | |
42 |
User | Count |
---|---|
285 | |
162 | |
138 | |
76 | |
73 |