I have a multi-line text field where the data is delimited by commas. The field can contain from 1-32 items. Example: Chicago, Boston, Seattle. I need to determine the number items in the field (in the example it is 3).
I tried using split with a variable counter: split(variables('Locations'),',')[variables('varIndex')] This split sits in a DoUntil loop that increments varIndex by one. However, when the index count exceeds the number of items, I get an error of 'out of bounds array index'.
How can I get a count of the commas or the items? If I know the count beforehand, I can set the DoUntil to stop before it tries the split and throw the error.
Thanks!
Solved! Go to Solution.
Pieter,
That worked perfectly. Thank you very much!!
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 |
---|---|
67 | |
27 | |
22 | |
16 | |
13 |
User | Count |
---|---|
129 | |
47 | |
44 | |
34 | |
31 |