User 1 receives a PowerAutomate Card in Teams with a list of items to choose from. They can select any number of items.
User 2 should receive the list of selected items with check boxes that need to be checked before submitting.
Example
Options for User 1:
[ ] Apple
[ ] Orange
[ ] Pear
[ ] Grape
[ ] Lemon
[ ] Lime
CSV Output:
Apple,Pear,Grape,Lemon
Checklist for User 2:
[ ] Apple
[ ] Pear
[ ] Grape
[ ] Lemon
I've gotten as far as using Split but I don't think this is the right action to use.
[
"Apple,
"Pear",
"Grape",
"Lemon"
]
I'm putting the Split output into this element in the Adaptive Card.
{
"type": "Input.ChoiceSet",
"choices": @{body('Split')},
"id": "groceries",
"isRequired": true,
"errorMessage": "Please Select an item.",
"label": "Groceries",
"spacing": "Medium"
},
Solved! Go to Solution.
Hi @anthonys123 ,
Maybe you need to construct the correct format for Input.ChoiceSet.
I have made a test for your reference.
variables('choicevariable')
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4",
"type": "AdaptiveCard",
"body": [
{
"type": "Input.ChoiceSet",
"isMultiSelect":true,
"placeholder": "",
"id": "groceries",
"isRequired": true,
"label": "Groceries",
"spacing": "Medium",
"choices":
@{variables('choicevariable')}
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit2",
"id": "btnSubmit2"
}
]
}
Result Screenshot:
Best Regards,
Charlie Choi
Hi @anthonys123 ,
Maybe you need to construct the correct format for Input.ChoiceSet.
I have made a test for your reference.
variables('choicevariable')
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4",
"type": "AdaptiveCard",
"body": [
{
"type": "Input.ChoiceSet",
"isMultiSelect":true,
"placeholder": "",
"id": "groceries",
"isRequired": true,
"label": "Groceries",
"spacing": "Medium",
"choices":
@{variables('choicevariable')}
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit2",
"id": "btnSubmit2"
}
]
}
Result Screenshot:
Best Regards,
Charlie Choi
That'll do it!! I can't thank you enough @v-yujincui-msft
This fills in a lack of education for me and I think it's going to make a big difference in my flows going forward. Cheers!!
User | Count |
---|---|
85 | |
37 | |
23 | |
20 | |
16 |
User | Count |
---|---|
127 | |
49 | |
46 | |
27 | |
25 |