Draft Save Event

Purpose

This event command can be used to trigger an action such as compose mail or get details, on the occurrence of the mentioned event (on saving a draft).

Request URL 

clientsdk.on("draft_save", function(draftData){})

Response Parameters

ParameterDescription
draftidUnique ID of the draft that is saved
attTmpObjAttachment object of any file attached to the draft

Sample Response


				{
draftId: "1595860626616112752",
draftObj: {
attTmpObj: "[{"size":"41780","n":"Design1.png","fP":"/Mail/Design2.png","sN":"688974046"}]",
bcc: "",
cc: "charles@zylker.com",
content: "<div><meta /><div><div style="font-size: 12pt; font-family: Georgia, Times New Roman, Times, serif"><div>Hi Paula,<br /></div><div><br /></div><div>This is in continuation to our discussion about the upcoming website design.<br /></div><div><br /></div><div>I have attached with this email some design ideas that my team has come up with.<br /></div><div><br /></div><div><br /></div><div><br /></div><div>Regards<br /></div><div>Rebecca</div><div><br /></div></div><br /></div></div>",
subject: "Website design",
to: "paula@zylker.com"
}
}