Saved Value is not registering before redirect
I just encountered an issue I have never seen and am wondering if anyone else has come across this.
I have a Formula Rich Text Button that Does the following:
'Class=Save Before Navigating'
Run an API_EditRecord and set a half dozen fields.
I am in Table A, and there is a record in table B being edited.
The problem I am having is I will see the 'Saving' dialogue come up (indicating my record is being saved), but it doesn't always see that field was changed. Here is an example.
For example, I changed a singular text field (minimally, I removed a period). The auto save ran, but then it indicated '0 fields changed'. Yet, I can see on my launch record the field is in fact saved, without the period. A field definitely changed. (I would post a picture but that seems to be bugged)
This is not consistent. Sometimes I run the test and the edit is made as expected. Another time I will run the test and it doesn't register the change. It is almost as if it is a race against the clock. Sometimes the EditRecord API is running before it can tell a change was saved.
Has anyone else run into this?