Action

Editorial Return

Posted by @derekvan, Last update over 5 years 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

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
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.