简体   繁体   English

Azure Logic App Post自适应卡并等待响应

[英]Azure Logic App Post adaptive card and wait for response

I'm trying to grab the input text from a Teams Adaptive Card and use that in my logic app.我正在尝试从 Teams Adaptive Card 中获取输入文本并在我的逻辑应用程序中使用它。 Currently the response is not recorded in the logic app.当前,响应未记录在逻辑应用中。

Any help would be appreciated!任何帮助,将不胜感激!

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "actions": [
        {
            "id": "Yes",
            "title": "Create Ticket",
            "type": "Action.Submit"
        },
        {
            "style": "positive",
            "title": "View in SentinelOne Portal",
            "type": "Action.OpenUrl",
            "url": "@{replace(outputs('URL'), '[', '')}"
        }
    ],
    "body": [
        {
            "size": "Large",
            "text": "@{triggerBody()?['subject']}",
            "type": "TextBlock",
            "wrap": true
        },
        {
            "items": [
                {
                    "text": "@{outputs('Compose_9')}",
                    "type": "TextBlock",
                    "wrap": true
                }
            ],
            "type": "Container"
        },
        {
            "type": "TextBlock",
            "text": "Ticket Info",
            "wrap": true
        }
    ],
    "msteams": {
        "width": "Full"
    },
    "type": "AdaptiveCard",
    "version": "1.5",
    "verticalContentAlignment": "Top"
}

Thanks, Jeremy谢谢,杰里米

Managed to resolve this myself, the output of 'Post adaptive card and wait for response' doesn't give any output options so you have to format it yourself自己设法解决了这个问题,'Post adaptive card and wait for response'的output没有给出任何output选项所以你必须自己格式化

Parse json, enter input in the expression field: @Outputs('adaptivecardname')?[body]解析json,在表达式字段输入:@Outputs('adaptivecardname')?[body]

There are two similar actions to send an Adaptive Card in Power Automated - "Post adaptive card in a chat or a channel" and also "Post adaptive card and wait for a response".在 Power Automated 中有两个类似的发送自适应卡片的操作——“在聊天或频道中发布自适应卡片”和“发布自适应卡片并等待响应”。 You need to use the 2nd one if you expect a response from the card.如果您希望收到卡片的回复,则需要使用第二个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Teams 自适应卡在 Logic App 中等待响应 - Teams adaptive card wait for respons in Logic App 关闭 MS Teams 机器人应用程序的自适应卡响应确认 - Turn off Adaptive Card response confirmation for MS Teams bot app OnTeamsMessagingExtensionCardButtonClickedAsync 响应更新自适应卡 - OnTeamsMessagingExtensionCardButtonClickedAsync response with updated adaptive card 自适应卡未在 Teams 移动应用上呈现 - Adaptive card is not rendered on Teams mobile app 无法通过 azure 中的逻辑应用向 Microsoft Teams 发布消息 - Can't post a message to Microsoft Teams via logic app in azure 提交不适用于 Azure Bot 发布的团队中的自适应卡 - Submit not working for Adaptive Card in Teams posted by Azure Bot 根据 MS Teams 自适应卡中的选定响应触发发送 email - Trigger sending an email based on the selected response in an Adaptive Card in MS Teams 在 MS Team Adaptive Card 中,我如何指定它发布到的服务器? - In MS Team Adaptive Card, how do I specify the server it post to? 占位符在 Android 应用程序中的 MS 团队消息扩展自适应卡中不可见 - Placeholder is not visible in MS teams message extension adaptive card in Android app 自适应卡片提交操作在 iOS 移动应用程序上的 MS Teams 中不起作用 - Adaptive card Submit Actions are not working in MS Teams on iOS mobile app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM