drafts icon indicating copy to clipboard operation
drafts copied to clipboard

Custom Tags - Drafts User Guide

Open extratone opened this issue 3 years ago • 0 comments

Custom Tags - Drafts User Guide


In addition to the predefined tags always available, scripts in an action can create custom tags which become available to action steps run after the script in the same action. This is useful if a scripted action step processes text to create a value that then needs to be inserted in a later step that shares that text. The below example shows a simple script with creates a tag.

let s = "My String Value";
draft.setTemplateTag("mytag", s);
// after running this script, templates later
// in the action will have available a [[mytag]] tag.

Custom template tag values can also be created using the Define Template Tag action step

extratone avatar Jul 05 '22 23:07 extratone