Overview Spell function converting string to a lowercase (coverts all characters in string to lowercase)
<source lang="javascript"> string downcase(string attr); </source> attr - any string Results Returns converted string. Examples <source lang="javascript"> if(downcase(option_value) == "yes" ) { option_value="Yes"; } else if (downcase(option_value) == "no") { option_value="No"; } </source> source: Downcase - SDU
logf(ERROR, "get_access_for_contact failed %s",msg[0]);
logf(ERROR, "get_func_access failed %s",msg[0])
get_func_access
This method Reads data from s and stores them according to parameter format into the locations given by the additional arguments
Functions that will allow to get some basic info about logged in user from the spell code. Since spel code from triggers is run under supervisor account this information allows to get security information (e.g. function acces level) and enforce constrains manually.
CA SDM Log file Levels: SIGNIFICANT, WARNING, ERROR or FATAL.
Example code:
ss
logf(SIGNIFICANT, cnt::get_login_user_role_name());
logf(SIGNIFICANT, cnt::get_login_user_interface_type());
logf(SIGNIFICANT, cnt::get_login_user_grant_level());
logf(SIGNIFICANT, cnt::get_grant_level_string_val(cnt::get_login_user_grant_level()));
Example built by Gutis
Where can I find Spel functions documentation?