New line in URL Scheme?

When creating a new draft via the URL scheme, how can I indicate title vs body? I thought a new line might do it, but that doesn’t get the result I expect (and I might be doing the new line incorrectly).

The title is the first line and the body is all subsequent lines.

drafts5://x-callback-url/create?text=Title%20of%20Draft%0AFirst%20line%20of%20draft%20body.%0ASecond%20line%20of%20draft%20body

Creates a draft like this.

Title of Draft
First line of draft body.
Second line of draft body

Running this JavaScript against the draft will then confirm the title and body.

alert(draft.title);
alert(draft.processTemplate("[[body]]"));
1 Like

Yep. I was trying to insert the line break encoding with an &. Once I got rid of that, as per your example, everything worked well.