Calculated Merge Fields in Actionstep allow you to use PHP code to create your own merge fields. However, not all PHP functions are available to be used. Some functions are not allowed due to security concerns while other functions are allowed.
If you try to use a PHP function that is not supported in a calculated merge field, you will receive a message saying that function is not allowed.
If this happens, complete an Actionstep Support ticket to request if the function can be allowed. If you include a copy of the calculated merge field you are trying to create, that will help Actionstep decide if the function should be allowed or not. If it is not allowed, Actionstep may be able to suggest an alternative function you could use.
Allowed Constants
|
SORT_ASC SORT_DESC SORT_REGULAR SORT_NUMERIC |
SORT_STRING SORT_LOCALE_STRING SORT_NATURAL SORT_FLAG_CASE |
Allowed Functions
| count array_key_exists array_multisort in_array sizeof intval round strval floatval date_add date_create_from_format date_create_immutable_from_format date_create_immutable date_create date_date_Set date_diff date_format date_interval_create_from_date_string date_interval_format date_isodate_set date_modify date_offset_get date_parse_from_format date_parse date_sub date_sun_info date_time_set date_timestamp_get date_timestamp_set date_timezone_get date_timezone_set |
print_r mktime strtotime getdate localtime date gmdate gmmktime time number_format strtolower strtoupper ucwords ucfirst substr explode implode echo lcfirst ltrim printf rtrim sprintf sscanf |
str_ireplace wordwrap |
Disallowed Functions
| exec passthru system shell_exec popen proc_open pcntrl_exec eval |
assert preg_replace create_function include include_once require require_once phpinfo |
Additional Resources:
- Working with Calculated Merge Fields
- Using Merge Field Repeat Blocks
- Understanding Merge Field Options
Updated