Grooper Help - Version 25.0
25.0.0023 2,165
  • Overview
  • Help Status

Value Selector

Embedded Object Grooper.Cloud

Defines a value to extract from each record in a web service response, and optionally map it to a Grooper field.

Remarks

The Value Selector object enables you to extract a specific value from each record returned by a web service lookup, and optionally map that value to a Data Field in your data model. Value selectors are used within a Web Service Lookup to build a mapping between the external data source and your Grooper configuration.

Role and Usage

Value selectors are configured as part of a Web Service Lookup to specify which values to extract from each record identified by the record selector. Each value selector defines how to locate a value within the record (using JSONPath or XPath), and how to present or store that value in Grooper. You can add multiple value selectors to extract several values from each record, enabling you to build a complete mapping from the web service response to your data model.

Typical uses include:

  • Populating Data Fields with values from a web service.
  • Extracting additional values for review, validation, or display in lookup results.

Configuration Guidance

  • Use the 'Path' property to define how to locate the value within each record. This can be a JSONPath or XPath expression, depending on the response format.
  • Use 'Target Field' to map the extracted value directly to a Data Field. If left blank, the value will appear as a column in the lookup results but will not be stored in any field.
  • Use 'Alias Name' to customize the column name in the results table for clarity or presentation purposes.
  • Multiple value selectors can be added to extract and map several values from each record.

How It Works

  1. The Web Service Lookup identifies records in the response using the record selector.
  2. Each value selector extracts a value from each record using the configured path expression.
  3. Extracted values are mapped to Data Fields or displayed as columns in the lookup results, according to your configuration.

Best Practices

  • Use diagnostic output to verify that your selectors are extracting the intended values.
  • When mapping to Data Fields, ensure the data types and formats are compatible for validation and automation.
  • Use alias names to clarify column headings, especially when extracting values not mapped to fields.

> Tip: You can combine multiple value selectors to build a comprehensive mapping from the web service response to your Grooper data model, supporting both automation and review scenarios.

Properties

NameTypeDescription

See Also

Used By

Notification