Debug templateTag With X-Callback

Last update about 2 months ago - Unlisted

Debugging an issue with TemplateTags and X-Callback.

Steps

  • script

    function displayTags(p_when)
    {
      let strMesg = p_when;
      strMesg += "\nBUTTON: " + draft.getTemplateTag("dotags_button");
      strMesg += "\nTEMP: " + draft.getTemplateTag("temptag");
      strMesg += "\nWORD COUNT: " + draft.getTemplateTag("wordcount");
      strMesg += "\nUUID: " + draft.uuid;
      strMesg += "\nCONTENT: " + draft.content;
      alert(strMesg);
    }
  • prompt

    promptKey
    dotags
    promptTitle
    Tags
    promptMessage
    promptButtons
    Tag1|Tag2|Tag3
    includeTextField
    false
    textFieldDefault
    includeCancelButton
    true
  • script

    draft.setTemplateTag("temptag", draft.getTemplateTag("dotags_button"));
    draft.update();
    displayTags("After Prompt");
  • runShortcut

    shortcutName
    ViewIt
    waitForResponse
    true
  • script

    displayTags("After first call to ViewIt and just before setting word count");
    draft.setTemplateTag("wordcount", 2);
    draft.update();
    displayTags("Just after setting word count");
  • runShortcut

    shortcutName
    ViewIt
    waitForResponse
    true
  • script

    displayTags("After second call to ViewIt");

Options

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