Hi Shivprasad
You can use promise and await inside the async function to pause the return value until the code completes its execution
Note: include resolve() at the end of your logic to release the awaiting promise
Thanks
Vignesh G
mxobj.set("Name", "John Smith");
https://apidocs.rnd.mendix.com/9/client/mendix_lib_MxObject.html#set