If you search in source code for "RecordBegin(RcVc" you will see all the fields that you can use. The "flags" go from 1 to 29 so anything higher than flags[29] will not work.
Hi, Paul.
Sounds like you're talking about REST API. And that your are overwriting data with older values if B managed to read record before A finished to update it. Classic conflict resolution ...