> For the complete documentation index, see [llms.txt](https://blog.rhinoautomator.com/brians-integration-and-automation-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blog.rhinoautomator.com/brians-integration-and-automation-notes/automations/teams-notifications-azure-bot/two-stage-message-process/getting-the-message-ids.md).

# Getting the Message IDs

{% hint style="danger" %}
I've migrated the entire blog over to my new website. Please go to [https://rhinoautomator.com](https://rhinoautomator.com/) for more as this will be deleted at some point.
{% endhint %}

In Rewst, I have built out a subworkflow to handle sending an initial message. I've added this sub-workflow to each parent workflow that needs to send an initial message. I set the "Publish Results As" for the initial message as "CTX.send\_results". The response to sending a message is a JSON payload with the "card\_id" and "card\_activity\_id". You require both of these items to be able to update a message at a later time. Add these two items to the "Submit" action in your Adaptive Card to ensure they are included in the response on submission.

<figure><img src="https://965055951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzwHskk220tGpzlbz7txC%2Fuploads%2FtFnk7YYpjfXRcDJnguk0%2Fimage.png?alt=media&amp;token=e3c81ee4-1cb8-4161-89c3-e12e0f0c331a" alt=""><figcaption><p>Sub-workflow Outputs</p></figcaption></figure>

In the sub-workflow that looks like this:

<figure><img src="https://965055951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzwHskk220tGpzlbz7txC%2Fuploads%2F9tnDa0HZZQbuv7aPOyJM%2Fimage.png?alt=media&amp;token=1d8dc5f0-2ae7-4a19-ba1a-349884895b41" alt=""><figcaption><p>Action Results in the Sub-Workflow</p></figcaption></figure>

I will link the sub-workflows under Resources
