Forum Post: RE: How can i send email on change of fields in single trigger

  • Thread starter Thread starter Gian Torralba
  • Start date Start date
Status
Not open for further replies.
G

Gian Torralba

Guest
Hi Sudhakar, Let me correct some of the code you used: For getting the field values to store in the text area, You don't need to use the rbv_api.getFieldValue() since you can access it via token in the drop down on the top right of the formula text area inside the trigger. e.g var z = "{!lastName#value}"+"{!lastName#value}"; //using the getFieldValue API will affect performance instead of using the available tokens in the object. Can you check the trigger hierarchy: 1. Object script to compare trigger //this will compare and send the email 2. Update field value of the merge token //this will set the data on the merge field You can also use the debug function in the trigger and use rbv_api.println() to display the values and be sure that the data is correct inside the condition. Thanks, Gian

Continue reading...
 
Status
Not open for further replies.
Back
Top