Best Practices For Server Side Scripting

 

    Best Practices For Server Side Scripting


  • Current.update() should not be use in After BR.
  • Don't use gr as a variable in the script.
  • Should not use GlideRecord row count, use GlideAggregate.
  • Always use conditions in BR, when to run.
  • Don't use global BR, use script include instead of that.
  • The script should not contain hard-coded IDs.
  • Don't enable Business rule on Table transform map until & unless required.
  • Too many workflows should not be checked out.
  • Read ACL should not have GlideRecord/GlideAggregate.
  • Complex workflow-not more than 30 steps.
  • gs.sleep() should not be used in BR.

Comments