如何解决如何在 JSON Adaptive 卡中使用 If 语句供 Teams 在提交的选择响应中@提及用户?
我已经制作了这张卡片,它可以按照我想要的方式在团队中工作。我只是不知道如何将结果传递回具有自动功能的团队或在提交选择集后使用 if 语句@提及个人。实际上,我想使用自适应卡中设置的选项来通知或不通知团队中的另一个人。我相信我必须在卡中使用带有选择集结果的 if 语句,因为数据无法传递给 Power Automate,对吗?我在哪里插入 if 语句?
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json","type": "AdaptiveCard","version": "1.2","body": [
{
"type": "TextBlock","text": "Appointment Booked For @{triggerOutputs()?['body/from']}","id": "Title","spacing": "Medium","horizontalAlignment": "Center","size": "ExtraLarge","weight": "Bolder","color": "Accent"
},{
"type": "TextBlock","text": "@{triggerOutputs()?['body/subject']}","id": "acHeaderTagLine","separator": true
},"text": "Notify Accounting?","spacing": "None","id": "acHeader"
},"text": "@{outputs('Get_@mention_token_for_Onboarding')?['body/atMention']}: blah blah blah instructions","id": "acInstructions","wrap": true
},"id": "acQuestion"
},{
"type": "Input.ChoiceSet","placeholder": "Select from these choices","choices": [
{
"title": "Yes,Notify Accounting","value": "1"
},{
"title": "No,this is an exception","value": "0"
}
],"id": "acChoices","style": "expanded"
}
],"actions": [
{
"type": "Action.Submit","title": "Submit","id": "btnSubmit"
}
]
}
解决方法
不能在自适应卡片中使用 if 语句。您可以使用 Action.ToggleVisibility 您可以在用户点击按钮时执行操作
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。