Is there a way to get just the body of the current draft in JavaScript?


#1

I’m trying to create a Things task using the built in Things support.
The lines in question are:

task.title = draft.title;
task.notes = draft.content;

Unfortunately, this repeats the title in the notes of the Things task.

Is there a way to just get the body as is returned by the [[body]] template tag?

Thanks - LG


#2

draft.processTemplate("[[body]]")


#3

@dfay is right. Applicable documentation on the Draft object reference.


#4

It’s been right in front of me this whole time!! Thanks @dfay and of course @agiletortoise