Toggle flag

Last update 28 days ago

Steps

  • script

    //TOGGLE FLAG
    var d = draft.content;
    var toggleStatus = draft.isFlagged;
    
    if (toggleStatus == true) {
      draft.isFlagged = false;
      var message = "Un-Flagged";
    } else {
      draft.isFlagged = true;
      var message = "Flagged";
    }
    draft.update();
    
    var status = app.displaySuccessMessage(message);

Options

  • After Success Nothing
    Notification Error
    Log Level Info
Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.