TeamsのリアクションをPower Automate側で取得する方法を聞かれたので、メモ。
やりたいこと

Power Automateの構築



※コンテンツに入れる式は↓
outputs('メッセージ詳細を取得する')?['body/reactions']

{
"type": "array",
"items": {
"type": "object",
"properties": {
"reactionType": {
"type": "string"
},
"displayName": {
"type": "string"
},
"reactionContentUrl": {},
"createdDateTime": {
"type": "string"
},
"user": {
"type": "object",
"properties": {
"application": {},
"device": {},
"user": {
"type": "object",
"properties": {
"@@odata.type": {
"type": "string"
},
"id": {
"type": "string"
},
"displayName": {},
"userIdentityType": {
"type": "string"
}
}
}
}
}
},
"required": [
"reactionType",
"displayName",
"createdDateTime",
"user"
]
}
}

// リアクションしたユーザーのID item()?['user']?['user']?['id'] // リアクションしたユーザーの名前 item()?['user']?['user']?['displayName']

body('選択')['body']

以上でPower Automateの構築は完了。
Power Appsの構築と動作確認

With({ret:getReactions.Run(cmbGroup.Selected.id, cmbChannel.Selected.id, glyMessages.Selected.id).reactions},
UpdateContext({reactions:
ForAll(ParseJSON(ret) As reaction,
{
type:reaction.type,
reaction_name:reaction.reaction_name,
dateTime:reaction.dateTime,
user_id:reaction.user_id,
user_name:reaction.user_name
}
)
});
)


おまけ:リアクションしたユーザーの詳細が欲しい場合


