Is there variable in scripting, that will provide the same result as [[body]] from the Drafts Templates? I have found that draft.bodyPreview(40000) does what I want (reference), but it is a bit unclear if there is a ceiling on the length?
There is no limit on the preview function, but you also have full access to the template engine in scripting through the processTemplate function, like:
let b = draft.processTemplate("[[body]]")
There is no limit on the preview function, but you also have full access to the template engine in scripting through the
processTemplatefunction
Ah - that’s a clever approach. Didn’t realise that option. Thank you
.