I have a suggestion for a new Log Message Action.
Currently if you have a scenario where there may be multiple return codes from an Action, you would have
to code them with separate Log Message Action statements, example below:
Using my suggestion below, or one similar, you would only have to code one Log Message Action.
Or what might be a simpler implementation, being able to specify the Message Type using a variable,
then that variable could be used in the Log Message Action. Just some ideas. . .
New Extended Log Message Action
Re: New Extended Log Message Action
I would generalize your idea into adding a switch flow control (to replace multiple elseif's) with Action and Parameter instead of your Message Type and Message Text. Then it could be used for various scenarios, not just for messages.
Re: New Extended Log Message Action
Executing or assigning variables by condition can be applied to almost any action. This will make action parameters and the action editor incredibly complex. It may also lead to loss of compatibility with older versions of tasks.would generalize your idea into adding a switch flow control...
Let each action perform only the functions for which it is intended.
Oleg Yershov