Hi,
I noticed that value generated by formula from "Expression" is not automatically updated.
Please provide with a solution (Triger example) how to update Expression value on the daily basis.
There is "Formula" filed and there is "Expression" field.
I'm talking about "Expression" field.
Formula that I'm using is depended on external supplied value - getCurrentDate.
Expression field has some limitations on its own:
• Expression's JavaScript code cannot include loops and references to related records.
• Expression will not be updated when related records are updated.
• Expression fields are updated whenever record is created and updated -- not when record is viewed.
• Once created, data type of expression cannot be changed.
• Unlike Formula fields, Expression fields do create actual database column, so they are subjected to limitations on number of columns per Object.
• You can use server-side API to query Expression field.
You can update a objects expression-fields with an object-script.
ex.
var arr = [];
rbv_api.updateRecord("objectname", "{!id}", arr);
Used following work-around:
1. Created new Integer field
2. Created new "Update Field Value" trigger
3. Set this trigger to update new Integer field with a value from the formula field