Based on the value of a question submitted in a Microsoft Form, I want to send an adaptive card to one or more people via Teams. I think I have the end steps figured out. I have the adaptive card nested within an Apply to each action. The Recipient of the adaptive card is set to the Current item of the Apply to each, and the selection on the Apply to each is the output from a variable.
That variable is where I'm hung up. I'm currently using an if formula to calculate the email addresses. This is probably where I need help.
if(equals(outputs('Get_response_details')?['body/r43d6bce2bb684bf79bff6d8c61fb8f9c'],'Finance'),'[email protected]',if(equals(outputs('Get_response_details')?['body/r43d6bce2bb684bf79bff6d8c61fb8f9c'],'Sales Operations'),'[email protected]','[email protected]'))
You can send adaptive cards to team/group/1:1 by getting user id / channel id.please check this docs