Action

Append to Specific Draft

Last update over 5 years ago - Unlisted

Steps

  • script

    //Set this to be the UUID of the draft you wish to append to.
    let specificDraftUUID = "B04EDD28-9ABE-42F6-92A9-317F54663CF3";
    
    //Set this to be the separator between appends
    let separator = "\n\n---\n\n";
    
    //Find the draft to append to
    let specificDraft = Draft.find(specificDraftUUID);
    
    //Append the separator followed by the current draft contents to the draft to be updated
    specificDraft.content = specificDraft.content + separator + draft.content;
    specificDraft.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.