Drafts Action Directory

Editorial Return

Posted by @derekvan, Last update about 1 month ago

Paired with the action “Roundtrip to Editorial”, this action in called by Editorial to insert the newly edited text into the existing draft. In other words, don’t use this action on its own, it will be called automatically.

Here’s the paired Drafts action: https://actions.getdrafts.com/a/1Q9

And the Editorial action: http://www.editorial-workflows.com/workflow/5816692563247104/nnMLnJ2k-ME

Install

Steps

  • script

    // roundtrip from editorial
    
    var id = draft.processTemplate("[[title]]");
    var t = draft.processTemplate("[[body]]");
    Draft.find(id);
    editor.setText(t);
    draft.update();

Options

  • After Success Default
    Notification Info
    Log Level Info

Comments

Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.