---
title: Resources
description: Configuring Resources
documentId: ipaas-resources
locale: en-US
---

To make your integration flow more organized and flexible, you can use _resources_ files and flow variables. 

For some Apache Camel components, such as "JSONata", it is necessary to use scripts stored in separate files. 
These files can be created in **Resources**, regardless of the file extension. 
This way, you can reference them directly in the main flow, ensuring they are used during the integration flow execution.

<Callout type="important" title="IMPORTANT">

All files added to the Resources folder are automatically added to the integration's *classpath* and must be referenced using *classpath* locators, according to each component's documentation.

In the example below, we reference the resource file *extractTotal.jsonata* in the **Resource Uri** field of the JSONata component:

```yaml
- to:
    uri: jsonata:classpath:extractTotal.jsonata  
    parameters:
      inputType: JsonString
```
</Callout>

## Creating a resource file

_Resources_ files can be created in both the **Diagram** tab and the **Source Code** tab.

In the **Diagram** tab:

![](https://creative-ball-51b3fc85c0.media.strapiapp.com/resources_diagram_d3f357200d.png)

<Steps>
<Step>
Click the resources icon ![](https://creative-ball-51b3fc85c0.media.strapiapp.com/icon_resources_51a1d0f647.png) on the left side of the canvas.
</Step>
<Step>
Click **+**.
</Step>
<Step>
Click the file and specify the name and extension: for example, `jsonata.yaml`, `teste.txt`, etc.
</Step>
<Step>
Add the file content in the text editor.
</Step>
<Step>
Save the _resource_ file by clicking **SAVE**.
</Step>
</Steps>

In the **Source Code** tab, in the folder structure **Source > Resources**:

![](https://creative-ball-51b3fc85c0.media.strapiapp.com/resources_source_code_5acac9e224.png)

<Steps>
<Step>
Click **+**, to the right of the Resources folder.
</Step>
<Step>
Specify the file name and extension: for example, `jsonata.yaml`, `teste.txt`, etc.
</Step>
</Steps>

<Callout type="tip" title="TIP">
A ![yellow dot icon](https://creative-ball-51b3fc85c0.media.strapiapp.com/yellow_dot_11ba153582.png) to the right of the file name indicates that the file has not been saved.

A ![red dot icon](https://creative-ball-51b3fc85c0.media.strapiapp.com/red_dot_86cdde60d1.png), indicates that there are errors in the file.
</Callout>

### File name requirements

The file name must meet the following criteria:

* **Maximum size**: 100 characters.
* **Allowed characters**: alphanumeric, `-`,`_` and `.`.
* **Uniqueness**: each file name must be unique, but you can have, for example, `test.yaml` and `test.json`.

### Extension types

* If the file extension is `.yaml`, `.json` or `.xml`, it will be formatted with colors and layout. 
If the structure is incorrect, a notification will be displayed.

* If the file extension is different from those mentioned, the file will not be validated. 
However, you can create your script normally.

### Limits

* There is no limit to the number of files the folder can contain.
* A file can be a maximum of 1 MB.
