I am using Drafts to create a project template (in TaskPaper format) and then send the draft to Omnifocus via this X-Callback-URL:
Now the creation of the draft works, but it won’t be used in the X-Callback. Instead, the callback uses the previously visible draft.
How can I make the X-Callback use the new draft?
[[draft] will reference the loaded draft when you trigger your action.
Can you share how you are creating the new draft?
To be able to reference that new draft we need to understand what reference you have to it once you have created it.
Chances are you’ll either need a template tag to be set to the content of the new draft (so the original draft temporarily gets to hold the content of the new draft as a custom template tag you can then m substitute into your URL), or you carry out the callback call in script rather than an action step.
I did exactly that to get it done. And I have way more options using scripts.
Re templates. Need to read about how to use them
Thank you very much for your detailed answers.
Ahh, now I see! Instead of the step „Create new Draft“ I used „Define Template Tag“ instead, created my template in there, gave it a name and used that name in my callback URL. Worked like a charm. Thank you!