request - getEncodedQueryFor(String tableName)

Specifies that the value of the parameter is an encoded query for the specified table.

Calling this function on a parameter tells the proxy that the value of the parameter represents an encoded query for the specified table. The proxy parses the encoded query and encrypts the values for fields in the encoded query that need to be encrypted.

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

Table 1. Parameters
Name Type Description
tableName String A table name
Table 2. Returns
Type Description
void

This example is from the List Request encryption rule.

function ListRequestAction(request) {
	var path = request.path;
	var tableNameEndIndex = path.indexOf("_list.do");
	var tableName = path.substring(1, tableNameEndIndex);
	request.urlParams.sysparm_query.encodedQueryFor(tableName);
}