Updating UserComp via Rest v2

Hello all,

I’m trying to update the UserComp for the current user via Rest. I’m getting the user via the GetById Method call and after that I’m updating the related field(incl. RowMod to “U”) and calling the Update Method via Rest.
The problem arises when I’m logged in with that user at the same time as I execute the functionality. I’m getting “Row has been modified by another user”.
If I close Epicor and execute the function, the user is updated correctly, without issues.

Is there some workaround you can suggest?


Try to use a specific Admin id for API Call, not the current user.

1 Like