Action

New with Template & Tags

Posted by agiletortoise, Last update over 5 years ago

Create a new draft pre-filled with template content, and already assigned a “meetings” tag.

Steps

  • script

    /*
      Create new draft with template text and tag assigned.
    */
    
    // create template
    const template = `## Meeting Notes
    
    - Topic: 
    - Attendees:
    
    #### Notes
    
    `;
    
    // create the draft
    var d = Draft.create();
    d.content = template;
    d.addTag("meeting");
    d.update()
    
    // load in editor and focus for editing
    editor.load(d);
    editor.activate()

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.