Share a thread via email or Slack


Overview #

Shares the most recent message, including a link to the thread, via email.
Vanilla JavaScript:
await window.CordSDK.thread.shareThread('my-awesome-thread-id', {
  method: 'email',
  email: 'example@email.com',
});
await window.CordSDK.thread.shareThread('my-awesome-thread-id', {
  method: 'email',
  email: 'example@email.com',
});
Copy

What this function returns #

A promise that resolves to true if the operation succeeded or rejects if it failed.

Arguments this function takes #


threadID #

required
string
The ID of the thread to share.


options #

required
Options to configure how to share a thread.

This property can be one of the following:

  • ShareThreadViaEmail

    This is an object with the following fields:

    Show property details

  • ShareThreadToSlack

    This is an object with the following fields:

    Show property details


Not finding the answer you need? Ask our Developer Community

Ask Cordy