cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jeronimo
Level: Powered On

Concurrence users in same screen

How I do if have two users in the same screen and the "UserA" press the button and alter the field 'Name' in my sharepoint list to your name and if "UserB" press the button don't overwrite the field 'Name' in sharepoint list?

6 REPLIES 6
Meneghino
Level 10

Re: Concurrence users in same screen

Hi.  You can use the User() function.

Something like the following:

If (User().Email = "aaa@bbb.com", Patch(MySpList, {the record}, {Name: User().FullName}, false)

 

Jeronimo
Level: Powered On

Re: Concurrence users in same screen


@Meneghino wrote:

Hi.  You can use the User() function.

Something like the following:

If (User().Email = "aaa@bbb.com", Patch(MySpList, {the record}, {Name: User().FullName}, false)

 


The problem is: I have 2 users in the same screen if "UserA" click, the field receive your name but if "UserB" click too the field can't receive your name because the field belongs to "UserA".

Meneghino
Level 10

Re: Concurrence users in same screen

Hi @Jeronimo

Can you please explain what you mean by "I have 2 users on the same screen"?

A screenshot would help.

Jeronimo
Level: Powered On

Re: Concurrence users in same screen

Hi @Meneghino,

Exist 1 order and 2 users to take this order, but only the first user to click can take this order and when second user click in the ordem just receive some message with alert "This order alredy have owner"

 

Currently in my app when the second user click in order he "steals" the order, overwriting the order owner, so I need make a block to prohibit this.

 

Meneghino
Level 10

Re: Concurrence users in same screen

OK, I think I understand.

 

If (IsBlank(the record.Name), Patch(MySpList, {the record}, {Name: User().FullName}, false)

 

 

Jeronimo
Level: Powered On

Re: Concurrence users in same screen


@Meneghino wrote:

OK, I think I understand.

 

If (IsBlank(the record.Name), Patch(MySpList, {the record}, {Name: User().FullName}, false)

 

 


I tried this but when 2 users press the button in the same time the field in SPlist is null, takes some time to write some thing in the field, so, the user 2 can get the order to him, but could not.

 

The big problem is response time of SPlist

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 (Last 30 Days)
Users online (6,020)