Notifications
Announcements
Hi,
I am assuming that the sequence() expression function does not work with flows? I would like to dynmically create an array of numbers based on the returned value for an api call but can't work out what the expression looks like.
Thanks
Use the range expression:
range(0,10)
That's a great start. Is there any way to change the interval so that the array is (0,10,20,30) etc?
Either parameter can be dynamically driven by the output from previous steps. So you can use the value coming back from your API.
Hi @rjtedge :
Power Automate currently does not have a function similar to sequence() in Power Apps.I am not sure how to achieve your needs through API, but I have an alternative method
I've made a test for your reference:
1\My Flow
2\Run the flow
3\The result:
Best Regards,
Bof
It's a long time since this was asked but for anyone else looking for this in future I achieved this by first adding a 'compose' step with a range(start,count) expression then multiplying each item in the range by a factor equal to my desired interval using a 'select' step.
This is very quick compared iterating a value and adding it to an array using a loop.
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 538 Super User 2025 Season 2
Tomac 405 Moderator
abm abm 252 Most Valuable Professional