Action

archive-by-UUID

Posted by pseudometa, Last update almost 2 years ago

This action allows you to archive viathis Draft URI scheme:
drafts://x-callback-url/runAction?action=archive-by-UUID&text={UUID}

Steps

  • script

    // https://forums.getdrafts.com/t/action-on-a-draft-via-url-scheme-but-in-the-background/10503/7
    
    const uuid2delete = draft.content;
    const d = Draft.find(uuid2delete);
    
    d.isFlagged = false;
    d.isArchived = true;
    d.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.