Wednesday, May 18, 2016

Oracle Sales Cloud - Groovy

1. Use getPrimaryRowState().isNew() instead of getPrimaryRowState().isNew()==true

2. Don’t use variable to do get and then set , Instead use setAttribute('AccountName_c',nvl(var_record.getAttribute('AccountName_c'),''))

3. Use PartyId or RecordId instead of other fields for search when searching across objects

4. Set Dynamic Choice list field using Id instead of directly setting field

5. Where there is direct Read only not based on any condition we should use Page Composer instead of 1==2

6. Always make sure that code in BeforeUpdate is conditional. It should not get trigger everytime update is happening

No comments:

Post a Comment