Hello,
I'm currently building a flow which uses a sharepoint list and adaptive cards to collect information via teams and upadate the used list with new data.
I ran into a problem with the flow because the list has >1 user responsible and when sending the card it has to be inside a for each, which makes it not possible to use variables (because the variable is cross-updated in the for each causing errors)
Due to this situation I changed all variables to composes so it would calculate a different value in the "for each", however when I try to remove the Array variable I'm having more issues than with the strings.
The original step did an append to variable of each ID from the sharepoint list and I ended up with an array of ints like this:
[
307,
312,
313
]
I'm currently doing a Select to select the IDs but they come with the "ID" name
[
{
"ID": 307
},
{
"ID": 312
},
{
"ID": 313
}
]
What I'd need is to convert from the select format to a simple array, does anyone have an idea of how to do that without the use of variables?
Thanks!
Solved! Go to Solution.
Change the select action to text mode by clicking on this:
Then just put your value only in the map, then you will have a simple array without named elements.
To convert the JSON array to a simple array you'll need to initialize an array variable and then use an apply to each on the JSON array to append each value to the array variable.
Change the select action to text mode by clicking on this:
Then just put your value only in the map, then you will have a simple array without named elements.
Thanks! such an easy but good solution 😀
User | Count |
---|---|
89 | |
37 | |
26 | |
13 | |
12 |
User | Count |
---|---|
127 | |
53 | |
38 | |
26 | |
21 |