admin管理员组

文章数量:1410730

I need to setup a workflow in teams where the flow is

  1. When a webhook request is received
  2. Post the content as an adaptive card in a teams channel
  3. And in the adaptive card there is a field called email, and I need to fetch the email
  4. Send email to the extracted email

I am able send the alert using a webhook from Splunk into a teams channel. The alert gets posted to a teams channel as an adaptive card. In the card, there is a field called Email ID.

I need to know how I can setup an action in the workflow to send an email from the email field extracted from the adaptive card.

I need to setup a workflow in teams where the flow is

  1. When a webhook request is received
  2. Post the content as an adaptive card in a teams channel
  3. And in the adaptive card there is a field called email, and I need to fetch the email
  4. Send email to the extracted email

I am able send the alert using a webhook from Splunk into a teams channel. The alert gets posted to a teams channel as an adaptive card. In the card, there is a field called Email ID.

I need to know how I can setup an action in the workflow to send an email from the email field extracted from the adaptive card.

Share Improve this question edited Mar 14 at 15:07 R Schultz 5445 silver badges16 bronze badges asked Mar 6 at 18:22 Sowmya KavuriSowmya Kavuri 1
Add a comment  | 

1 Answer 1

Reset to default 0

Extract the Email from the Adaptive Card:

  • Add a new step to parse the adaptive card response.

  • Use the "Parse JSON" action to parse the response from the adaptive card.

  • In the "Content" field, select the response from the adaptive card.

  • Provide the schema for the JSON response.

Here’s an example schema:

{
  "type": "object",
  "properties": {
    "email": {
      "type": "string"
    }
  }
}

Send an Email to the Extracted Email Address:

  • Add a new step and search for "Office 365 Outlook".

  • Select the action "Send an email (V2)".

  • Configure the action with the necessary details

本文标签: