Discussions

Ask a Question
Back to All

Data difference between event hook and raw-api call

Hello,

I have a question for a better understanding of the data flow. I would like to explain it using an example:

A work item is set to status completed. In the backend, a script reacts to this change (event hook when updating work items) and triggers an external job (outside of Net Build). This external job reads the work item information from the raw api. And at this moment, the status is still the previous one (e.g. In Review). A few seconds later, the data in the raw api are the correct ones.

So the question is: Why are there differences? And can I check with some code in the script if the data is available in the raw api?

Thank you very much!