Difference between revisions of "Role Formula"
From SmartWiki
Line 6: | Line 6: | ||
In this example, '''totalpoints''' is the custom field we are storing the sum in. | In this example, '''totalpoints''' is the custom field we are storing the sum in. | ||
The sum is of all [[transactions]] on the user's record of custom field id numbers 1224 and 23445 given a particular transaction type name ("whatever"). | The sum is of all [[transactions]] on the user's record of custom field id numbers 1224 and 23445 given a particular transaction type name ("whatever"). | ||
+ | |||
+ | The Role Formula is entered on the [[User Role|Edit Role page]]. | ||
+ | |||
+ | See | ||
==See Also== | ==See Also== |
Revision as of 13:07, 3 October 2013
A Role Formula is analogous to a Template / Type Formula, though it performs advanced calculations and logic on custom fields stored on the Contact profile, for Contacts possessing this role.
An example Role Formula would be:
@totalpoints@=@trans.sum(#1224#+#23445#):typename='whatever'@
In this example, totalpoints is the custom field we are storing the sum in. The sum is of all transactions on the user's record of custom field id numbers 1224 and 23445 given a particular transaction type name ("whatever").
The Role Formula is entered on the Edit Role page.
See