request - valueFor(String tableName, String fieldName)

Identifies that the parameter maps to the specified field in the specified table.

Calling this function on a parameter value tells the proxy that the value for this parameter maps to the specified field in the specified table. The proxy then decides if the field needs to be encrypted.

This method is available only in an Edge Encryption rule action script.

Table 1. Parameters
Name Type Description
tableName String The table name
fieldName String The field name
Table 2. Returns
Type Description
void

This example is from the Form Post encryption rule.

function FormPostAction(request) {
	var tableName = request.postParams.sys_target;
	for (var paramName in request.postParams) {
		var fieldName = paramName.replace("sys_display.original.", "");
		fieldName = fieldName.replace("sys_original.", "");
		fieldName = fieldName.replace("sys_display.","");
		fieldName = fieldName.replace(tableName + ".", "");
		request.postParams[paramName].valueFor(tableName, fieldName);
	}
}