Hello Abrar Ahmed,
There are different ways to achieve this.
Personally i love to use a websocket for this.
Check out this module for that for exaple:
https://marketplace.mendix.com/link/component/205276
However you can also try to force the refresh on your screen, with a microflow or nanoflow.
Hope this helps,
Good luck!
Hi Abrar,
I am not sure i think snippet does not refresh the entity but you can try this try to take dataview directly and in the datasource take a nanoflow inside nanoflow use refresh entity or object activity.