GetKeyValuePairProperty

Retrieves a value from a key in a specific facility form.

Syntax

GetKeyValuePairProperty( ProductReference, Key );

Parameters

Parameter Name Type Description Optional? Default Value
ProductReference String The reference for the facility to query. No n/a
Key String

The key whose value to return.

No n/a

Output

If successful, the function will return the requested key value.

Use Case

This function is used when you are working with a model containing more than one Facility product. Since each facility might have identical keys but contain different values, such as policy number prefixes.

In this example, an insurance company provides both home and car insurance quotes using a questionnaire. The model contains two facility sub-models, one for Home and one for Car.

Each facility has a unique policy number prefix and the following expression can be used to get the prefix for the Car facility:

GetKeyValuePairProperty( CarFacility, PolicyNumberPrefix );