Get current compose details

Purpose

This command is used to get the details of the current email being compose

Request URL 

Using the get current compose details will return information about the email currently being composed. This can be done by using the "On compose open" event.

clientsdk.get(["currentComposeMailInfo"]).then(resp=>{console.log(resp);});

Response Parameters

ParameterDescription
contentContent of the email being composed
subjectSubject of the email being composed
emailidsEmail IDs of all recipients
fromEmail address in the from field
toArray of email addresses of recipients in To field
ccArray of email addresses of recipients in Cc field
bccArray of email addresses of recipients in Bcc field
attachmentMeta

Array of meta data of an attachment in the following format:

{
name
src
tempFileId
attachId,
entityId,
entityType
}

Note: 

  • In the attachment meta data, either tempFileId or combination of attachId, entityId, and entityType will be present and not all at once.
  • src: Source URL of the attachment, tempFileId: Temporary file ID of the attachment

Sample Response

Copied{
"content": "<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>",
"emailIds": ["paula@zylker.com", "charles@zylker.com"],
"from": "rebecca@zylker.com",
"to": "paula@zylker.com",
"cc": "charles@zylker.com",
"subject": "Website design"
}