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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Ensure no data loss wh...
Power Apps
Answered

Ensure no data loss when multiple people edit record

(0) ShareShare
ReportReport
Posted on by 24

I have a following type canvas application made for writing and saving information for financial analysis.

 

Users can select an organization they are representing.

After selecting an organization they can select a section of analysis they want to fill. One section can have up to 6 different questions, which can be answered via TextInput components. 

 

The user can write to one or multiple textboxes and click "save" which launches a Patch function to save the information to dataverse table. If a row for this organization and analysis section already exists, the function will update this row, if it doesn't the function will create another row.

 

There is a possibility that two users are editing two different questions of a same section from a same organization at the same time and I would like to ensure, that both of their edits end up to Dataverse. Is it possible to include a check for the Patch function to see if the specific row has been recently edited, or is it possible to see if another user is currently editing the same textinput?

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @Jaasha ,

     

    Since you will check if a row for an organization and analysis section already exists before saving to data source, you can Refresh(DataConnection) before Patch.

     

    If two users select the same organization and section, they won't submit the result at the same time. After one user submitted, another user should refresh the data source and get the latest version then check the condition again. There would be an internal server error of Patch function when a user Patch to a recent modified item.

     

    Best regards,

  • Chris-D Profile Picture
    1,246 on at

    Hi @Jaasha, how are you ensuring that the different people are answering different questions? What is there to stop them both answering the same question? 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard