For a button Example for OnSelect Fx using a semicolon:
Office365.sendemail(blah blah) ; UpdateCotext(color blah)
Does this mean when pressed the Email would be sent successfully soon as I see the button change color? For end user, will the UpdateContext still work when there's error occurs in the back end in SendEmail?
Solved! Go to Solution.
Yes the UpdateContext will still execute. If you only want to execute the UpdateContext() if the email was sent then you could do something like this:
Set(varIsMailSent, Office365Outlook.SendEmailV2(.........));
If(varIsMailSent, UpdateContext(......))
It will process in order from left to right. So the SendEmail() will happen and the UpdateContext().
thanks, and if any error occurs in SendEmail, will the UpdateContext will still work?
Yes the UpdateContext will still execute. If you only want to execute the UpdateContext() if the email was sent then you could do something like this:
Set(varIsMailSent, Office365Outlook.SendEmailV2(.........));
If(varIsMailSent, UpdateContext(......))
perfect. yes, I want to assure users that the email were sent successfuly first then the button will change color to their view. hope it won't create much delays with they IF statement.
@ndy856 , you won't see much of a delay if any.
User | Count |
---|---|
156 | |
94 | |
82 | |
77 | |
58 |
User | Count |
---|---|
196 | |
175 | |
103 | |
96 | |
89 |