# Exercise 2: Store list of customers

In this exercise, store a list of customers through a Flow.

## Requirements

* Create or select an existing entity for customers information&#x20;
* Create an API to receive a list of customers as a request&#x20;
* Trigger a Flow from the API to update the list of customers in the target entity.

## Solution

The solution entails three (3) steps:&#x20;

* Step 1: Create a Flow component to receive the customers' list from the API and create an entity record.&#x20;
* Step 2: Create a Flow to update the created entity record in the target entity “UserName\_Acc\_customers”.&#x20;
* Step 3: Create API to get a list of customers in the request and trigger the created Flow.&#x20;

{% hint style="info" %}
In this exercise, users are advised to replace “UserName” with their name.&#x20;
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.langstack.com/welcome/get-started/learn-langstack/introduction-to-flows-and-flow-components/exercise-2-store-list-of-customers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
