To create a function
Navigate to Setup > Developer Space > Functions.
Click New Function in the top-right corner.
Under Basic Information:
Enter a Name and Description for the function.
Select the Module in which the function needs to be triggered.
Under Argument Mapping:
Provide the Method Name.
To map the function to a custom value, enter the Argument Name and select the corresponding value.
Click the + icon to add more arguments, and repeat the same steps as required.
Write the required logic in the Deluge Script Editor.
Deluge script can be written manually or generate it using the Zia Deluge Assistant Bot.
Click the Zia icon at the bottom-right corner of the Deluge Script Editor.
Enter your requirement as a prompt and click the Send icon.
Once satisfied with the generated script, click the Copy icon at the top-right corner of the script window.
Paste the copied script into the Deluge Script Editor.
Click Save to edit or execute the script later.
Click Save & Execute Script to validate and run the code.