Codeunit WSB_DMTSupportFileAnalysis¶
Provides functions to preview a Document Mail Template from a support (.dmts) archive. The support is unzipped, the template and dataset are extracted, and the resulting HTML email body is opened in the standard Business Central email editor.
Properties¶
| Name | Value |
|---|---|
| Access | Public |
Methods¶
wgFncPreviewFromSupport¶
Previews the mail template from a support by rendering it against the included dataset and opening the resulting HTML email body in the standard Business Central email editor.
Parameters¶
| Type | Name | Description |
|---|---|---|
Text |
pSupportFileName |
The file name of the support (only used to derive the preview subject). |
Codeunit "Temp Blob" |
pCduTempBlobSupport |
The Temp Blob containing the support. |
Text |
pLanguageTag |
The ISO language tag to render for. Leave empty to detect from the dataset. |
wgFncPreviewTemplate¶
Renders a mail template against a dataset and opens the resulting HTML email body in the standard Business Central email editor.
Parameters¶
| Type | Name | Description |
|---|---|---|
Text |
pLabel |
A label to use as the email subject when the template does not specify one, typically the file or layout name. |
Text |
pTemplateContent |
The mail template file contents. |
Codeunit "Temp Blob" |
vCduTempBlobDataset |
The Temp Blob containing the report XML dataset. |
Text |
pLanguageTag |
The ISO language tag to render for. Leave empty to detect from the dataset. |
wgFncPreviewTemplate¶
Previews a template using schema metadata to decode binary text columns.
Parameters¶
| Type | Name | Description |
|---|---|---|
Text |
pLabel |
The fallback email subject. |
Text |
pTemplateContent |
The mail template file contents. |
Codeunit "Temp Blob" |
vCduTempBlobDataset |
The report XML dataset. |
Text |
pLanguageTag |
The language tag, or empty to detect it from the dataset. |
Text |
pWordXmlPart |
The customized Word XML part containing column data types. |
wgFncExportSupportToHTML¶
Downloads the rendered support-file template as standalone HTML.
wgFncExportTemplateToHTML¶
Renders a detached template and downloads it as HTML with embedded images.