Query Customer Block
Contents
Use this block to look up a customer's core profile and profile extension attributes. Use the CustomerID to specify which customer you want to return data for. Composer stores the returned results in an application Property variable. For an example of how to use this block, see the Getting and Using E-mail Addresses topic.
The Query Customer block has the following properties. The behavior of some properties can vary depending on whether you are in offline or online mode.
Name Property
Find this property's details under Common Properties for Callflow Blocks or Common Properties for Workflow Blocks.
Block Notes Property
Find this property's details under Common Properties for Callflow Blocks or Common Properties for Workflow Blocks.
Exceptions Property
Find this property's details under Common Properties for Callflow Blocks or Common Properties for Workflow Blocks.
You can also define custom events.
Note: The error.com.genesyslab.composer.customernotfound exception is raised if no customer with the specified customer ID is found.
Condition Property
Find this property's details under Common Properties.
Logging Details Property
Find this property's details under Common Properties.
Log Level Property
Find this property's details under Common Properties.
Enable Status Property
Find this property's details under Common Properties.
Customer ID Property
Click the down arrow under Value and select a variable to specify the Customer Identifier.
Include Extensions Property
Select a variable or from the list of extensions to specify which customer profile extension attributes are returned as part of the query operation.
- Click under Value to display the button.
- Click the button to open the Extensions dialog box.
- Click Add to open the Extension dialog box.
- Opposite Type, click the down arrow and select one of the following:
- Context Services. Select an extension attribute already defined in the database for Value. Note: Composer supports multi-valued extensions starting with Universal Contact Server 8.0.2.
- Variable. Select the variable that contains the extension.
- Literal. Enter the name of the extension attribute.
- Click OK. The Extensions dialog box lists the extension attribute or the name of the selected variable. You can also use this dialog box to edit and remove extensions.
Result Property
Click the down arrow and select a variable whose value contains the JSON data returned by the Context Services web service. These results will then be available in other blocks in the application for further processing.
Any post processing work to be done on returned results can be done in the existing Assign block which provides access to ECMAScript functions. It already supports writing simple or complex expressions to extract values out of JSON strings and arrays.
Variables Mapping Property
Find this property's details under Mapping Common Properties Context Services.