Action

Missing Stock v0.7a

Last update over 5 years ago - Unlisted

Steps

  • script (disabled)

    /*
      Create new draft
    */
    
    // create the draft
    var d = Draft.create();
    d.update()
    
    // load in editor and focus for editing
    editor.load(d);
    editor.focus()
  • prompt

    promptKey
    ItemNumberKey
    promptTitle
    Item Number
    promptMessage
    promptButtons
    OK
    includeTextField
    true
    textFieldDefault
    includeCancelButton
    true
  • prompt

    promptKey
    NumberMissingKey
    promptTitle
    How many are missing?
    promptMessage
    promptButtons
    OK
    includeTextField
    true
    textFieldDefault
    1
    includeCancelButton
    true
  • insertText

    template
    Dear Boss,
    
    We seem to be missing [[[NumberMissingKey_text]]] of item [[ItemNumberKey_text]]. Can you please confirm and bill out accordingly?
    
    Thanks,
    
    Paul
  • script

    draft.setTemplateTag("EditorContent", editor.getText());
  • mail

    toRecipients
    ccRecipients
    bccRecipients
    subjectTemplate
    Missing stock
    bodyTemplate
    [[EditorContent]]
    sendAsHTML
    false
    sendInBackground
    false

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.