I’m having trouble getting started with the MustacheTemplate example script found in the Drafts Script Reference guide. I have plugged the example into a Script step and the script runs successfully (green success notification), but no new drafts are actually created.
I apologize if I’ve overlooked something simple, but I can’t see why Drafts isn’t returning new drafts based on the template embedded in the script. I tried changing the “Draft.create()” function in the script to “new Draft(),” but that didn’t make a difference. I’ve also studied Mustache Prompt, but I can’t discern what’s different there in terms of rendering the template — both seem to use MustacheTemplate.createWithTemplate() and template.render().
I appreciate any guidance. Thanks!