Action

Toggle Flag

Posted by @edgauthier, Last update over 5 years ago

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

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