Post To MS Teams Channel Action enables the sending of messages to microsoft teams channels.
Metadata tab
The Write Variables option ensures that the “Package Action” logs the variable values into the “Action vars before log file” before the action is executed and logs the updated variable values into the “Action vars after log file” after the action completes.
This option is typically used for debugging and is not recommended in a production environment.
It can be globally disabled through the
options dialog
.
Parameters tab
Selecting Connection
Selecting Team
Selecting Channel
Variables tab
The Variables tab defines the variables to be updated during the action’s execution.
Tip: double click on the variable name to disable/enable it
Execution log tab
The Execution log tab is populated after the action is executed. Double click on the row to view the log.
Example Calculated SMS Message
Pascal
Script
begin
if DayOfWeek(Now)=7 then
begin
Result:='Please feed the Cat';
end
else
begin
Result:='Please take the dog for a walk';
end;
end;
Python
Script
importdatetime;ifdatetime.datetime.today().weekday()==0:Result.Value='Please feed the Cat'else:Result.Value='Please take the dog for a walk'