Update Request Additional fields during request create/update using Custom Trigger - Deluge

Update Request Additional fields during request create/update using Custom Trigger - Deluge

This is a sample custom function script to update the Request Additional Field Values during request create/update based on certain criteria using Custom Triggers.

Refer to this link for Python equivalent: https://pitstop.manageengine.com/portal/en/kb/articles/how-to-update-request-additional-fields-during-request-create-update-using-custom-triggers-v3

Steps to configure:
1.  Download the attached scripts.  Copy the contents into Request custom functions.

2.  Goto Admin > Request Custom Function > Custom Function > New > Paste the update_udf_date.txt content and save it with a name



For API Field names, refer to Admin > Incident - Additional Field




3.  Configure the created custom function in a custom trigger to get executed when the request is created.


Note:
The same can also be configured as a Business rule, refer to the below links.
Deluge: https://pitstop.manageengine.com/portal/en/kb/articles/update-request-additional-fields-during-request-create-update-using-business-rules
Python: https://pitstop.manageengine.com/portal/en/kb/articles/how-to-update-request-additional-fields-during-request-creation