Preview of the data in Constallation is unable to achieve

It is possible to display data in the preview panel even without local records in the Data Type. However, Constellation pattern requirements dictate that the Default Look Up Data Page must be properly configured to take an input and return a single result.

For local records, this is straightforward: you use the Key as a parameter and set the source to Lookup. To achieve this for your external API scenario, you have two primary options:

Option 1: Single Record API (Recommended)

If your external system provides an endpoint that accepts a unique ID and returns the details of a single record, simply configure this API as the source for your Default Look Up Data Page.

Option 2: Data Transform with List Filtering

If you only have access to a List API, you can use the following workaround:

  1. Identify a unique property to serve as the Key.

  2. Pass this value as a parameter to your Default Look Up Data Page.

  3. Set the source to a Data Transform.

  4. In the Data Transform, loop through the results of your List API Data Page to find the record matching the parameter.

  5. Map that specific record’s data onto the current Data Page.

Note: I only recommend Option 2 if the List API response is small and Option 1 is not possible. Filtering large datasets within a Data Transform can lead to performance bottlenecks at runtime.

Default look-up data page source: