Expression rule

Certified Associate Developer

Hi All,

I just need to know which one is the best practice

1)creating an expression rule to fetch the data and creating another rule to manipulate the retrieved data

2) using same expression rule for both things

  Discussion posts and replies are publicly visible

Parents
  • I've used both methods - I prefer to separate but sometimes is not necessary.  If the rule to fetch raw data might be used in another location, separate it out from the manipulation rule.  If the rule is very specific to get/manipulate data, will unlikely be used in another location, might be fine to combine.

    I will typically separate them out regardless however for ease of maintenance, etc.  Just can't say I've always separated them :)

    Compartmentalizing your code functions is typically best practice.

Reply
  • I've used both methods - I prefer to separate but sometimes is not necessary.  If the rule to fetch raw data might be used in another location, separate it out from the manipulation rule.  If the rule is very specific to get/manipulate data, will unlikely be used in another location, might be fine to combine.

    I will typically separate them out regardless however for ease of maintenance, etc.  Just can't say I've always separated them :)

    Compartmentalizing your code functions is typically best practice.

Children