DataSources can be configured to retrieve person data within Pragmatic, allowing for functionalities such as creating repetitive sections or displaying detailed information about individuals.

DataSource Requirements

For a DataSource to retrieve person data, it must be configured with a specific label called “Resolves People” in its definition. This indicates that the DataSource is designed to obtain and manage person records.

Required Output Fields

The DataSource must return the following three output fields:

  • id: Field referencing the unique identifier of the person.

  • nombre: Field referencing the person’s first name.

  • apellido: Field referencing the person’s last name.

DataSource resolving person data

Creating a DataSource that Solves People

To configure a new DataSource that retrieves person data, follow these steps:

Step 1: Define the DataSource

Set up your SQL query, MongoDB query, or JavaScript function so that the returned results include the fields id, nombre, and apellido.



Step 2: Verify the “Solve people” Label

Once the DataSource is created with the correct output fields, ensure that the “Solve people” label is included in the DataSource header. This is crucial to identify its specific function of retrieving person data.



Step 3: Using the DataSource

Use the Pragmatic platform to integrate this DataSource. For example, you can use it to create repetitive sections where detailed person information needs to be displayed.