cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MattPA
Level: Power Up

Referencing a range of numbers

G'day

 

In the following ClearConnect I have a sequencial range of numbers as values.

Is there a way to reference those values as a range of numbers? eg. 1:40

 

ClearCollect(TagNumberCollection,[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40])

 

I have searched and not found the answer.

 

Thanks

Matt

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Referencing a range of numbers

HI @MattPA 

 

FirstN(TagNumberCollection,40) - will return a collection of the first 40 items 

 

ClearCollect(colnew,FirstN(TagNumberCollection,40))

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

1 REPLY 1
Dual Super User
Dual Super User

Re: Referencing a range of numbers

HI @MattPA 

 

FirstN(TagNumberCollection,40) - will return a collection of the first 40 items 

 

ClearCollect(colnew,FirstN(TagNumberCollection,40))

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 414 members 5,197 guests
Please welcome our newest community members: