Tags

{action} Tags

Note

Most of these tags are only available in the context of an action (i.e., when the script is being run as part of an action). If you try to use them outside of an action context without providing an action identifier, they will throw an error.

{action.invocations;action_id}

Returns the number of times an action has been invoked.

NameTypeDefaultDescription
action_idstringcontext ActionThe ID or import identifier of the action.

{action.name;action_id}

Returns the name of an action.

NameTypeDefaultDescription
action_idstringcontext ActionThe ID or import identifier of the action.

{action.isDisabled;action_id}

Returns whether an action is disabled.

NameTypeDefaultDescription
action_idstringcontext ActionThe ID or import identifier of the action.

{action.id;action_id}

Returns the ID of an action.

NameTypeDefaultDescription
action_idstringcontext ActionThe ID or import identifier of the action.

{action.schedule;action_id}

Returns the schedule of an interval action. This tag only works for actions with trigger type Interval.

NameTypeDefaultDescription
action_idstringcontext ActionThe ID or import identifier of the action.

If the action is not an interval action or has no schedule, this tag will throw an error.

Example usage:

{=schedule;{action.schedule}}  // Gets the schedule of the current action
{action.schedule;imported-action} // Gets the schedule of an imported action