For the complete documentation index, see llms.txt. This page is also available as Markdown.

Datastore

Build and use a datastore to keep your data for easy reuse.

You can use a datastore for use cases like listing active users, managing workspace settings, and lookup tables. Data from a datastore can be fetched using its namespace through a dedicated Make module or via the API.

The key specifications for datastore interaction include:

  • authentication through Magic Links

  • support for CSV data files

  • supported text search

The steps below demonstrate an example of how to use the datastore functionality and test it with the end-to-end flow.

1

Populate the datastore

Start with populating a datastore through the Set a Datastore from a CSV Upload module in Make. The supported file format for the data is CSV. To pull the CSV file, you can create a scenario in Make with relevant modules.

For example, for fetching the file you can use the HTTP module and then link it to the Set a Datastore from a CSV Upload module.

  • Add a URL to your file in the HTTP module.

  • Configure the Set a Datastore from a CSV Upload:

    • Add a name for the Namespace – it's used for organizing and separating data, it binds the data extracted from the CSV file, for example: active_users.

    • Enter the name of the Key Column – it's the key for each imported entity, for example: id.

    • Select the HTTP - Get a file option.

  • Run the scenario. It populates a datastore with all the information from the uploaded file, for example with active users. By default, there are up to 100 entries that are displayed in the response, but the datastore can include more than that.

Set a Datastore from a CSV Upload module configuration in Make
Configuring the Namespace, Key Column, and CSV file source for the Set a Datastore from a CSV Upload module
2

Create a form to access datastore values

A common use case is to use datastores to populate select boxes in forms – create a form to access the values from the datastore.

  • Go to Management Dashboard -> VSM -> Extensions -> Forms and choose Create form.

  • Choose the Dropdown list component and go to the Data tab.

  • Choose URL for the Data Source Type and paste the URL in the Data Source URL field. The variable in the URL is your datastore name from the Set a Datastore from a CSV Upload module, for example: https://api.emporix.io/.../data-store/active_users/values.

  • Add the Request Headers:

    • First – key: X-Magic-Link, value: _MAGIC_LINK_ID_.

    • Second – key: X-Tenant, value: _TENANT_ID_.

  • Add the Search Query Name – it's used for refining the results, for example: search.

  • Leave the Search Threshold with the 0,3 value.

Form dropdown data source URL and request headers configuration
Setting the datastore URL and request headers for a form dropdown data source
3

Datastores are authenticated with Magic Links. You can add the Create Form Magic Link ID module in a Make scenario and in the Included Forms select the form that you'd prepared for the datastore search. The module creates a link to the form that is used in the List Values in a Datastore module. You can add it in the same scenario or create a new one only for searching the data.

Create Form Magic Link ID module with datastore form selected
Selecting the datastore search form in the Create Form Magic Link ID module
4

Add the List Values in a Datastore module

  • Enter the Namespace that was set up in the Set a Datastore from a CSV Upload, in our example it was active_users.

  • Choose the Magic Link ID from the Create Form Magic Link ID module.

  • Choose the search type, for example, you want to search for users called Nathan.

  • Add a limit for your search, for example, you want to limit the number of active users called Nathan to 250 results.

List Values in a Datastore module search configuration
Configuring namespace, Magic Link ID, search term, and result limit in the List Values in a Datastore module
5

Run the scenario

Run the scenario. If the run is successful, you can see the search results in bundles, in the List Values in a Datastore module output. See the returned demo data:

List Values in a Datastore module output bundles
Search results returned as bundles after running the List Values in a Datastore module

The whole example can be viewed in a following flow, but it can be also separated to upload data for the datastore only (with the Get a File and Set a Datastore from a CSV Upload modules), and later to search for data within the configured datastore (with the Create Form Magic Link and List Values in a Datastore modules).

End-to-end Make scenario flow for datastore upload and search
Complete Make scenario flow from CSV upload through form magic link to datastore search
  • To check the Make modules, see the VSM and CE Make Modules documentation.

  • To learn more about forms, see the Forms documentation.

Last updated

Was this helpful?