Solved! Go to Solution.
Was able to fix my own issue using a combination of "Apply to Each" and the item() expression. I was able to output the value as follows:
[{"name":"Value A"},{"name":"Value B"},{"name":"Value C"}]
Step 1: Take the string, use split() to convert the string into an array based on the delimiter.
Step 2: Create an array variable with no value.
Step 3: Using the "Apply to each" control, take the Compose output from Step 1 and input the key pairing I needed, "name" in this case. The item() function returns an array object for each iteration when used with "Apply to each".
Step 3A. Append the output from Compose 2 to the Array Variable.
Here's a screenshot of the flow:
Was able to fix my own issue using a combination of "Apply to Each" and the item() expression. I was able to output the value as follows:
[{"name":"Value A"},{"name":"Value B"},{"name":"Value C"}]
Step 1: Take the string, use split() to convert the string into an array based on the delimiter.
Step 2: Create an array variable with no value.
Step 3: Using the "Apply to each" control, take the Compose output from Step 1 and input the key pairing I needed, "name" in this case. The item() function returns an array object for each iteration when used with "Apply to each".
Step 3A. Append the output from Compose 2 to the Array Variable.
Here's a screenshot of the flow:
User | Count |
---|---|
82 | |
78 | |
48 | |
30 | |
23 |
User | Count |
---|---|
28 | |
27 | |
26 | |
21 | |
20 |