Working with the Responses

Your response handler workflow will get pinged on any "action" the bot can see. Bot installed as an application in a Team, newly created channels for a Team it's already installed in, channel deletion, reactions to posts made, comments made on posts, etc. What I primarily was working to build out was a workflow that will handle the responses to the different action buttons.

To do that, you need to understand the JSON payload that comes with the bot response. The primary part that you're concerned with is the "body":

Unexpanded JSON sent to Rewst

There's quite a bit of useful, acitonable information that you can get from the "body"

"body" JSON Expanded

If you've properly built out your "Action.Submit" "data" fields, then the piece of the "body" that you'll be most interested is "value". Here you'll see the properly formatted approval body needed to send the SME approved service ticket to Azure DevOps

"value" JSON Expanded

By building this information into the JSON for the action, you'll be able to pass the information from the response handler workflow to the sub-workflow and action as needed.

Last updated