Compare email template versions
lnkdrp_compare_email_template_versionsWhat changed between two versions of an email template, in either direction (from 6 to 3 is the older text against the newer). Returns fieldChanges (name, description, format, align, subject, and tags and documents added, removed or changed); readText, the subject and each changed paragraph as a reader sees them with [-removed-] and {+added+} markers, one per line, at most 4,000 characters (readTextTruncated and readTextLinesLeftOut when lines were left out; appUrl shows them all); changeKind: words (the subject or body reads differently; a paragraph break added or removed alone is not a word change), layout (the words read the same and the body as written differs: spacing, line breaks, paragraph breaks, images or styling), fields (only the details above changed) or none (the two versions are the same); wordsChanged, bodyWordsChanged and htmlChanged; sourceLines { added, removed }, the body's source lines that differ; summary, one sentence; deletedImages when an image in either version was deleted; and appUrl, the template's history page in LinkDrop opened on this comparison (side by side, as read and as source), absent when from and to are the same version. to defaults to the current version. No AI and no credits. A template that is not in this workspace, or is deleted, is not_found; a version the template does not have is not_found with details.code version_not_found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | The version compared to; the current version when left out. | |
| from | Yes | The version compared from. | |
| templateId | Yes | Email template id (24 hex chars), from lnkdrp_list_email_templates. |