cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ArtU
Frequent Visitor

auto generate duplicate ID issue

Hello,

I use "If(EditForm.Mode=FormMode.New, Text(First(Sort(LIST, ID, Descending))" to generate auto id. But when 2 users create new record at same time, there are duplicate ID issue. any suggestion? thanks.

4 REPLIES 4
v-jefferni
Community Support
Community Support

Hi @ArtU ,

 

Could you please share more details? Which data source is your App associated with? If it is a SharePoint list, there is a default and auto-generate ID column, why you need a manually generate ID column instead?

 

Anyway, there is a video for your reference:

PowerApps Excel Auto Increment Column - YouTube

 

and a thread:

Solved: How auto generate ID - Power Platform Community (microsoft.com)

 

code:

 

If(EditForm.Mode=FormMode.New, Text(Last(LIST).ID +1))

 

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

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

Hi @ArtU ,

 

Have you resolved the issue? 

If above post helps, then please consider Accept it as the solution to help the other members find it.


Best regards,
Community Support Team _ Jeffer Ni

Community Support Team _ Jeffer Ni

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

Hi,

Not yet, the duplicate ID issue still there.

Hi @ArtU ,

 

I think the best approach (if you are using SharePoint lists as the data sources) is using the default ID column, which would increase automatically based on the timestamps of the new records. Or if there is column type like auto-number it could be an option.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

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

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,063)