I would like to know if there is the possibility to open a draft directly after it's creation. After getting a file in a distant server, I would create an empty draft and I would like to open the draft message, so that I can fill it.
Here is my current code, the draft is well created, but I haven't found a way to open it. I need to navigate to "Drafts" section to open it.
var responseDownload = UrlFetchApp.fetch(urlDownload, params);
var theFile = Utilities.newBlob(responseDownload)
.setName(json.entry.name)
.setContentTypeFromExtension();
var recipient = "";
var subject = "";
var body = "\n\nThis draft was automatically generated.";
var options =
{
attachments: [theFile]
};
var draft = GmailApp.createDraft(recipient, subject, body, options);