Notifications
Announcements
Hi everyone,
I'm currently using the "List rows present in a table" action to retrieve data, which is being stored in a list of connector objects variable within my Power Automate Desktop flow.
Now, I need to use a VBScript to loop through this list and count the number of times the "Service Provider" field equals "test123".
I've been experimenting with various approaches, but I consistently encounter an error with the line For Each CurrentItem In "%Tracker_Data%". I suspect the issue lies in how the Tracker_Data variable is being referenced within the VBScript context. I'd rather loop through using VBscript than using the loops within PAD because it's a lot quicker especially with larger datasets.
For Each CurrentItem In "%Tracker_Data%"
Tracker_Data
Could anyone offer some guidance on the correct way to access and iterate through this list of connector objects in VBScript? Any help would be greatly appreciated!
Thanks!
Dim count Dim filterServiceProviderValue Dim itemServiceProvider ' Set the value to filter by filterServiceProviderValue = "test123" ' Initialize the count count = 0 ' Loop through each item in the Tracker_Data list For Each CurrentItem In "%Tracker_Data%" itemServiceProvider = CurrentItem("Service Provider") If Trim(LCase(itemServiceProvider)) = LCase(filterServiceProviderValue) Then count = count + 1 End If Next ' Output the total count WScript.Echo count
I'd rather loop through using VBscript than using the loops within PAD because it's a lot quicker especially with larger datasets.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 503 Super User 2025 Season 2
Tomac 321 Moderator
abm abm 237 Most Valuable Professional