web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Collections virtual au...
Power Apps
Unanswered

Collections virtual auto incremental number

(0) ShareShare
ReportReport
Posted on by 538

Experts ,

 

I am trying to bring auto incremental serial numbers against the collection row, Following code is applied. 

 

If(
 Connection.Connected,
 Collect(
 test1,
 Getlogo.Run(
 LookUp(
 Dailyusers,
 email = User().Email,
 route
 )
 )
 );


 LoadData(
 test1,
 "MyLocalData",
 true
 );

SaveData(
 test1,
 "MyLocalData"
);

---------------------------


ClearCollect(
 test2,
 {
 priority: "",
 state: " ",
 sequence: "",
 shortText: "",
 orderNumber: "",
 breakdownSymptomCode: "",
 breakdownSymptomGroupCode: "",
 customerCode: "",
 equipmentCode: "",
 orderDate: "",
 adviceText: "",
 center: "",
 syncType: "",
 routeId: "",
 activityClass: "",
 serviceType: "",
 orderClass: "",
 orderstatus: ""
 }
);



LoadData(
 test2,
 "MyLocalData"
);



Gallery --- Items

GroupBy(test2,"orderNumber","customerCode","activityClass","orderstatus")


Inside Gallery : ThisItem.orderNumber
Inside Gallery : ThisItem.customerCode
Inside Gallery : ThisItem.orderstatus
Inside Gallery : Autoincremental Number : ThisItem.orderNumber+1

 

Gallery view

 

AVTS_0-1642328033806.png

 

Below is the result, in which serial no is incorrect,

 

AVTS_1-1642328185554.png

 

expected result ,

 

AVTS_2-1642328341010.png

How to achieve this.

 

 

 

Categories:

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard