21: Application Composer: how to get the old and the new field value inside a Server Script Trigger
Content
My scope is to set the Description field value of a Quality Issue
- with "Issue Name was just updated" value when the Quality Issue Name was just manually changed
- or with "Issue Name was updated in the past" value when the Quality Issue Name still the same (during a Quality Issue update)
To do it, I went to Application Composer -> application “ERP and SCM Cloud” -> Standard Objects -> Quality Issue -> Server Scripts -> Triggers -> Object Triggers > Add a New Trigger:
Trigger: BeforeUpdate
Trigger Name: BeforeUpdate_Description
In Trigger Definition I have to check if the old value of Quality Issue Name is different from the new value of Quality Issue Name. Is it a way to do it?