cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AVTS
Super User
Super User

Collections virtual auto incremental number

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.

 

 

 

0 REPLIES 0

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,017)