Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

21: Application Composer: how to get the old and the new field value inside a Server Script Trigger

edited Mar 7, 2019 9:03AM in Quality 6 comments

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?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!