Hey Karan,
You can achieve this by implimenting workflow.
this way you will easily be able to do it.
for workflows, you can refer to this link
https://docs.mendix.com/refguide/workflows/
Hope it helps!