# 2. Calling the External System

**Create the Service Request**

{% hint style="success" %}
A new feature called [**Buildhelper**](https://glyue.docs.sandboxbanking.com/integration-gateway-platform-reference/buildhelper) is now available to help creating new Service Requests for various external Systems / APIs with pre-created fields for various request types.
{% endhint %}

Now that the integration has been created, we can begin to add logic to it. For this tutorial, we will simply call the `randomuser` API and receive its response.&#x20;

Right click on the integration, click *Go To*, then click *Service Request*.&#x20;

<figure><img src="https://688288018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1flQ2To8tQpCQWl2Ty9U%2Fuploads%2FX65sC8Ny6lfuIQYz5flY%2FScreenshot%202024-09-03%20at%2012.02.49%E2%80%AFPM.png?alt=media&#x26;token=4b49abcb-e01b-4901-b2ce-11cb5eb89cf3" alt=""><figcaption><p>Right click > Go To > Service Request</p></figcaption></figure>

You will see an empty table.

On the toolbar along the bottom of the screen, click the plus icon (+) to add a new Service Request. This will create a new row in the table, which will be highlighted in green to indicate it was newly created.

<figure><img src="https://688288018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1flQ2To8tQpCQWl2Ty9U%2Fuploads%2FEqpET6M0eHKp1vgM26qz%2FScreenshot%202024-09-03%20at%2012.03.01%E2%80%AFPM.png?alt=media&#x26;token=ed58d011-6e2f-4df6-90a6-764f0049eadf" alt=""><figcaption><p>Newly created, empty Service Request</p></figcaption></figure>

We need to fill out three columns on this service request. You may need to scroll your screen to the right to see all of them.&#x20;

| Column           | Value           |
| ---------------- | --------------- |
| System           | `HTTP`          |
| Service Name     | `n/a`           |
| Formula Variable | `request_users` |

Save your changes by clicking the *Save* icon on the bottom toolbar.

<figure><img src="https://688288018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1flQ2To8tQpCQWl2Ty9U%2Fuploads%2FB5PcdBeuL4OZjM2Y8VTh%2FScreenshot%202024-09-03%20at%2012.04.34%E2%80%AFPM.png?alt=media&#x26;token=8391638b-c764-4496-9998-327593a60c8f" alt=""><figcaption><p>Filled out Service Request</p></figcaption></figure>

Next, we will create the Field Mappings for this Service Request.

**Create the Field Mappings**

Right click along the service request's row, then click *Go To*, then click *Field Mapping*. You will see an empty table.

{% hint style="info" %}
You can verify that you're on the correct page by checking the *Component* dropdown on the top-left of the page. At this step, it should read "Field Mapping".\
\
![](https://688288018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1flQ2To8tQpCQWl2Ty9U%2Fuploads%2FUp4BuIRs2cPAWaZOHpfA%2FScreenshot%202024-09-03%20at%2012.05.44%E2%80%AFPM.png?alt=media\&token=2a3adbc3-5e0c-46ff-9eb2-6adcc2099e06)
{% endhint %}

Create two new field mappings by clicking the plus icon (+) on the bottom toolbar twice. Fill out the first field mapping by entering the following values in the first row:

| Column     | Value    |
| ---------- | -------- |
| Field      | `method` |
| Value      | `"GET"`  |
| Value Type | `str`    |

Then, fill out the second field mapping with the following values:

| Column     | Value               |
| ---------- | ------------------- |
| Field      | `url_path`          |
| Value      | `"/api/randomuser"` |
| Value Type | `str`               |

<figure><img src="https://688288018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1flQ2To8tQpCQWl2Ty9U%2Fuploads%2FuV5yUjU60iyxWtQJ5N14%2FScreenshot%202024-09-03%20at%2012.07.23%E2%80%AFPM.png?alt=media&#x26;token=7cc188ab-3387-4dc2-9755-fe1a3d37325e" alt=""><figcaption><p>Two field mappings, <code>method</code> and <code>url_path</code></p></figcaption></figure>

Save your changes.
