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
// roundtrip from editorial var id = draft.processTemplate("[[title]]"); var t = draft.processTemplate("[[body]]"); Draft.find(id); editor.setText(t); draft.update();
After Success Default Notification Info Log Level Info