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

Autonumeric error

Hello guys,

I have a list called Autonumeric with the names of each list and another numeric field that records the code of the last record. For example: Description: Customers, Last Code: 20.

In the OnSuccess property, I increase the value + 1.

My problem is when two users open the form at the same time and perform the SubmitForm, this Code is duplicated in the list of Clients.

I am looking for some way to register when the user of side B performs the Submit, the user of side A registers the value but increasing + 1

I appreciate your help

1 ACCEPTED SOLUTION

Accepted Solutions
ganeshsanap
Super User
Super User

@jcutrin Try adding refresh function in your formula before submitting record to list like:

 

 

Refresh( DataSource )

 

 

Replace DataSource with the name of your data source. After this you can add your formula to submit record to list.

Reference: Refresh function in Power Apps 


Please click Accept as solution if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it ‌‌👍

 

View solution in original post

2 REPLIES 2
ganeshsanap
Super User
Super User

@jcutrin Try adding refresh function in your formula before submitting record to list like:

 

 

Refresh( DataSource )

 

 

Replace DataSource with the name of your data source. After this you can add your formula to submit record to list.

Reference: Refresh function in Power Apps 


Please click Accept as solution if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it ‌‌👍

 

View solution in original post

Thanks you for your answer, regards

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (54,362)