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

Web Service Lookup

Lookup Specification Grooper.Cloud

Performs a lookup by calling a web service to retrieve, validate, or enrich data in Grooper.

Remarks

The Web Service Lookup class enables Grooper to connect to external web services for real-time data retrieval, validation, and enrichment of Data Fields and Data Models. It is a type of Lookup Specification designed to integrate REST or SOAP APIs into your data extraction and validation workflows.

Overview

Use Web Service Lookup to automate the process of querying external systems—such as CRMs, ERPs, or custom APIs—directly from Grooper. This allows you to:

  • Populate fields with authoritative data from remote sources.
  • Validate user-entered or extracted values against live data.
  • Retrieve lists or reference data for dropdowns and picklists.

The lookup is performed by sending an HTTP request (GET or POST) to a specified endpoint, optionally including parameters or a request body. The response is parsed (as JSON or XML), and data is extracted using selector expressions to populate or validate Grooper fields.

How It Works

  1. Configuration:
    • Specify the web service URL, HTTP verb, message format, authentication, and any required headers or request body.
    • Define how to extract records and values from the response using selector expressions.
  2. Execution:
    • When triggered, Grooper sends the configured request to the web service.
    • The response is parsed, and records are selected using a JSONPath or XPath expression.
    • Value selectors extract specific data points from each record, which are mapped to Grooper fields or included in the lookup results.
  3. Integration:
    • Results are used to populate, validate, or suggest values for Data Fields in your data model.
    • Errors, timeouts, or authentication failures are logged for review and troubleshooting.

Supported Scenarios

  • Data Enrichment:
    Automatically fill in missing or supplemental data by querying external APIs (e.g., address validation, customer info).
  • Validation:
    Ensure field values match authoritative sources by validating against live data.
  • Reference Data:
    Retrieve lists of valid values (such as codes, names, or categories) for use in dropdowns or picklists.

Authentication and Security

  • Supports multiple authentication schemes, including Basic, token-based, and custom HTTP Authentication Methods.
  • Secure sensitive information (such as API keys) using headers or authentication properties.
  • Always review the web service's documentation for required authentication and security best practices.

Error Handling and Diagnostics

  • If the web service returns an error, times out, or returns an unexpected response, an exception is raised.
  • Diagnostic output is available to review request and response details, including headers, payloads, and timing.
  • Use diagnostics to troubleshoot configuration issues, test selectors, and verify integration.

Diagnostic Artifacts

  • Request Log: HTTP method, URL, and headers sent to the web service.
  • Request Body: The full payload sent (for POST requests).
  • Response Body: The raw response received from the web service.
  • Response Headers: All headers returned by the web service.
  • Timing Information: Elapsed time for the request/response cycle.
  • Row Count: Number of records extracted from the response.

Best Practices

  • Test your configuration using diagnostic output to ensure requests and selectors are correct.
  • Use variables in the URL and request body to dynamically insert field values.
  • Map value selectors carefully to ensure extracted data matches your data model.
  • Set appropriate timeouts to handle slow or unreliable web services.
  • Secure all sensitive data and review API documentation for compliance.

Example Workflow

  1. Configure a Web Service Lookup on a Data Model or Data Section.
  2. Set the URL, HTTP verb, message format, and authentication as required by the API.
  3. Define a record selector (JSONPath or XPath) to identify records in the response.
  4. Add value selectors to extract and map data points to Grooper fields.
  5. Trigger the lookup during data extraction or validation to retrieve and apply results.

Properties

NameTypeDescription
General
Request
Response
Lookup Options
Lookup Info

See Also

Used By

Notification