Can someone explain me how to use this Get record "lock" feature?
Hi,
Can someone please explain how are we supposed to use this "lock" feature?
If a function in an endpoint was going to edit a record but it was locked, how can I set a retry system that keeps trying until it finds the record unlocked, then it locks it again while it edits the record and unlocks it when finishes editing the record? This must be done without using background tasks.
I have not found any Xano documentation on this "lock", if you have, please share it.
Thanks!
Best Answer
-
@pachocastillosr check out our documentation (https://docs.xano.com/working-with-data/functions/database-requests/get-record#lock)
Lock will lock the Get Record if other APIs are in the process of performing an action in the same database.
Answers
-
Pd: the "lock" field is not exposed in the "edit record" function. Does that mean that we have to use the function "get record" after editing the record in order to lock it again?
-
@Michael Udinski thanks man! That feature just saved me a lot of work, love it!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback