Action

Trash archived diary entries

Posted by drdrang, Last update over 6 years ago

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

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