I have Select which take a specific column and i get an Output of:
{ "True": true }, { "True": false },
"True": true
I try to use the function:
length(body('Select')?['True'])
but i get an error.
"InvalidTemplate. Unable to process template language expressions in action 'Compose' inputs at line '1' and column '2625': 'The template language expression 'length(body('Select')?['True'])' cannot be evaluated because property 'True' cannot be selected. Array elements can only be selected using an integer index. Please see https://aka.ms/logicexpressions for usage details.'."
Solved! Go to Solution.
Hi @CPKH ,
If you want to calculate the number of items whose True field value is true, you could refer to the following method.
Use Filter array to filter out the object with a value of True in Select, and then use the length() function to calculate the number.
Hope this helps.
Best Regards,
Hi @CPKH ,
Not sure that is possible with composite step. Once you used the ParseJSON then it will unfold with an For-Each block to iterate the values.
Please have a look at this blog.
http://johnliu.net/blog/2018/6/a-thesis-on-the-parse-json-action-in-microsoft-flow
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHi @CPKH ,
If you want to calculate the number of items whose True field value is true, you could refer to the following method.
Use Filter array to filter out the object with a value of True in Select, and then use the length() function to calculate the number.
Hope this helps.
Best Regards,
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
63 | |
27 | |
22 | |
15 | |
15 |
User | Count |
---|---|
123 | |
47 | |
43 | |
35 | |
31 |