Drafts Action Directory

Toggle Flag

Posted by @edgauthier, Last update 4 months ago

Toggles the flag on a draft and displays a brief message indicating the current state.

Install

Steps

  • script

    // Drafts - Toggle Flag
    // toggle flagged status of draft
    draft.isFlagged = !draft.isFlagged;
    draft.update();
    app.displayInfoMessage(draft.isFlagged 
    	? "Flagged" 
    	: "Unflagged");

Options

  • After Success Nothing
    Notification Error
    Log Level Error

Comments

Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.