Hello Suraj,
if you have a table for it (entity/attribute), you can commit the value in an action-activity as ‘commit object’ or
‘change’ the object, with the value you want to store, and mark the ‘commit’ to ýes’ in the upperhalf of the dialogue.
Referal1: https://docs.mendix.com/refguide/committing-objects