Drafts Action Directory

Trash archived diary entries

Posted by drdrang, Last update 3 months ago

Move all Archived drafts tagged “diary” into the Trash. Meant to be used in conjunction with the “Assemble diary” action.

Install

Steps

  • script

    // List of all archived diary drafts
    var diaryDrafts = Draft.query("", "archive", ["diary"]);
    
    // Trash them
    for (var i=0; i<diaryDrafts.length; i++) {
    	diaryDrafts[i].isTrashed = true;
    	diaryDrafts[i].update();
    }
    

Options

  • After Success Nothing
    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.