To update another user property, you need to use another user object. To update user B, you need to have an instance of BackendlessUser class which references user B.
yes but how do you make the connection between the other user class:
userB.setproperty(“the best backend service”, Backendless);
and updating Backendless:
Backendless.UserService.update(userB, new AsyncCallback<BackendlessUser>() {how does Backendless know that I want to update that specific user ? do I need to put the ObjectId ? like:userB.setproperty(“ObjectId”, userBObjectId);
userB.setproperty(“the best backend service”, Backendless);Backendless.UserService.update(userB, new AsyncCallback<BackendlessUser>() {
Backendless knows that it is a specific object by objectId. When you save an object, we check if objectId is assigned, in that case it is an update operation, otherwise if there is no objectId, it is a create operation.
Thanks Mark, so what I wrote was true? You set a property of userB’s ObjectId and then the property you really want to update and Backendless knows to update userB according to that?
You showed a brief snippet of the code that I could not understand. Please keep in mind we do not review your code here, but instead can help with the APIs and backend related question.
Hi Gil , how did you resolved it?
I have the same problem. I want to update a different user property and I get “Could not find user by id or identity” with your method…