Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Let's say, for example, you want to ensure that all formula fields on the Account object are always kept up-to-date in the local database when you are saving the Contact object.  You can create an OnSave PSL Trigger (see the next section in the wiki about PSL Validation Rules and Triggers).  The following example PSL will accomplish that:

Code Block
DEFAULT{
Action=SetVar;
VarName=Account_Id;
VarValue=IdAccountId;
| 
Action=CalculateSaveFormulas;
ObjectType=Account;
ObjectIds=%%Account_Id%%;
}

...