Skip to content

Instantly share code, notes, and snippets.

@codebydant
codebydant / power-automate-actions2.png
Last active July 17, 2024 19:15
Update 0365 Teams webhook in python to use Teams workflows (power automate flows)

Process

Follow the next steps to update O365 teams webhook connector to user workflows (power automate - flows).

This flow in power automate is going to be triggered by the webhook and post the message in the channel. The "attachments" field in the webhook is an array, so we need to parse the JSON data to get the content of the message. This will get the first attachment content.

  1. Create instant cloud flow
  2. Provide a name
  3. Select trigger: When a Teams webhook request is received and press create.
  4. Press the + New step button and select Add an action.
  5. Search for Post card in a chat or channel action.