How to get ID of newly created object in custom-function in Zoho CRM/Creator?

How to get ID of newly created object in custom-function in Zoho CRM/Creator?

Hi,

We want to trigger a workflow rule at the creation of Record, record is also created by a deluge script execution. In that deluge script, we have passed the ID of record as a parameter.
Now there is a problem i.e. when we create record manually from CRM, workflow rule is triggered/executed successfully and is getting ID of newly created record successfully, but when we create record by using custom function from CRM OR from Creator by using map() function, then it is not getting the ID of newly created record in CRM.
How could we get ID of newly created Record from Custom functions?

Any help will be appreciated.