// BLOG — AUTOMATIONS — TEAMS BOT
GETTING THE
MESSAGE IDS
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.