Action
Append or create with template
Last update
3 months ago
- Unlisted
Steps
-
includeAction
name -
script
// See online documentation for examples // https://docs.getdrafts.com/docs/actions/scripting var title = "My templated note"; var template = "My super template\n---\n"; var n = BearNote.fetch(title); if (n === false) { n = BearNote.create(template, { "title": title }); if (n === false) context.fail(); } n.append(draft.content + "\n---\n");
Options
-
After Success Default Notification Info Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.