I am updating a field on a runtime variable “Hours”. It is updated using a function. When inspecting the data source using devtools, the value seems to have been updated correctly.
Then I read a “project” with a filter based on the updated field. However, the “project” that is read aligns with the previous value of “hours” rather than the updated value.
I believe you need to persist the Hours object! By persisting this object to the database the updated field will be saved, therefore when you read objects to “Project (read, db)” it should have the updated value and the correct projects should be read.
I would however, expect the filter that is filtering on the “hours” data source to reflect the data in the “hours” data source. Even when the values in the database are different.
There is a chance that I misunderstood what you meant. I agree that what you are trying to do should work (based off of my understanding of the problem).
What you could try to do is add a “Sleep” action node (for example 100 ms) after the “Update object”. This could give Create time to sync.
If this does not work, please send me some more information to my DM´s: screenshots and what the filter conditions are would be great!