# How to send a message in a Quip thread while including an attachment

> 1. Use the [Create Chat Room](https://docs.uipath.com/activities/other/latest/integration-service/uipath-salesforce-quip-create-chat-room) activity to retrieve the Thread ID in the output response. You can also use [Search Threads](https://docs.uipath.com/activities/other/latest/integration-service/uipath-salesforce-quip-search-threads) with a search by title, to get the thread where you want to send the attachments.

1. Use the [Create Chat Room](https://docs.uipath.com/activities/other/latest/integration-service/uipath-salesforce-quip-create-chat-room) activity to retrieve the Thread ID in the output response. You can also use [Search Threads](https://docs.uipath.com/activities/other/latest/integration-service/uipath-salesforce-quip-search-threads) with a search by title, to get the thread where you want to send the attachments.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/latest-docs-image-364166-b9a7274b-e8888d9a.webp)

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/latest-docs-image-364162-70c7d6ac-fc8c0a2b.webp)
2. Next, use an [Upload Attachment to Thread](https://docs.uipath.com/activities/other/latest/integration-service/uipath-salesforce-quip-upload-attachment-to-thread) activity. In the **Thread ID** field, use the thread ID retrieved using one of the activities above. The only difference is that [Create Chat Room](https://docs.uipath.com/activities/other/latest/integration-service/uipath-salesforce-quip-create-chat-room) directly outputs the Thread ID, whereas the output of [Search Threads](https://docs.uipath.com/activities/other/latest/integration-service/uipath-salesforce-quip-search-threads) is a `Threads` object, with `id` listed as an attribute.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/latest-docs-image-364158-1969be3a-7f6469e7.webp)

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/latest-docs-image-364154-b3f2e93b-1eec43a4.webp)
3. Next, use the [Send Message to Thread](https://docs.uipath.com/activities/other/latest/integration-service/uipath-salesforce-quip-send-message-to-thread) activity. In the **Attachments** field, use the Attachment ID retrieved as output from [Upload Attachment to Thread](https://docs.uipath.com/activities/other/latest/integration-service/uipath-salesforce-quip-upload-attachment-to-thread).

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/latest-docs-image-364150-d910bcb5-c1272a39.webp)

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/latest-docs-image-364146-357d9091-ff89ae3f.webp)
