# Resource parameter types

Available in...

* Cloud API Services Platform
* Cloud Big Data
* Cloud Big Data Platform
* Cloud Data Fabric
* Cloud Data Integration
* Cloud Data Management Platform
* Data Fabric
* Qlik Cloud Enterprise Edition
* Qlik Talend Cloud Enterprise Edition
* Qlik Talend Cloud Premium Edition

There are 3 types of resource parameters.

## resource\_file\_&lt;parameter\_name&gt; and resource\_directory\_&lt;parameter\_name&gt;

Use these parameters if the artifact needs a file or multiple files in a single directory to be executed.

If you run the artifact requiring multiple resource files in Talend Studio, you need to provide the path to the folder where they are located as the value of the resource\_directory\_&lt;parameter\_name&gt; parameter.

If you are running the task based on the artifact requiring multiple resource files, you must create the resource in Talend Management Console after the artifact is published from Talend Studio to Talend Cloud. The resource files must be compressed to a single file, which must be uploaded in Talend Management Console as a Directory-type resource. The directory path is extracted during the task execution.

## resource\_flow\_temp\_folder

Use this parameter if you are executing a task in Talend Management Console and need to define a specific temporary folder for the task to use during execution. The temporary folder is created before the task is triggered and it is available to all actions in the task. The folder is deleted after the task is executed.

You must set the parameter type to String.

## resource\_webhook\_payload

Use this context parameter to receive data from the source system when the task (artifact) execution is configured to be triggered via a webhook. The external system will call the task and pass data to this parameter.

Webhooks must be defined in a JSON format, where:

* type: media type of the payload taken from Content-Type header, for example, application/json;charset=utf-8.
* data: payload data

The following payload types are supported:

* application/xml
* application/json
* text/plain
* text/xml
* Calls to the webhook endpoint with an empty payload are valid and supported.

Example:

```
[ { "type": "text/plain;charset=UTF-8", "data": "Some Data" }, { "type": "application/xml", "data": "<SomeXml/>" } ]
```

The example above does not show the original structure of the request sent to the webhook. Instead, it illustrates the schema to which Talend Management Console converts the incoming data, as the resource\_webhook\_payload variable requires this format.

Information noteImportant: Special response cases:

* Salesforce: Calls with Salesforce-specific payloads (for example, containing the soap.sforce.com references) respond with 200 OK instead of 204 No Content, even when the response body is empty.

* Dropbox: When the DropboxWebhooks/1.0 user-agent header is included in the request, the webhook responds with 200 OK and includes the value of the challenge parameter in the response body. For example, for a call similar to this one:
  ```
  GET https://webhooks.eu.cloud.talend.com/mywebhook/11fe60a514414a2a8b938b29084c4a29?challenge=parameter
  User-Agent: DropboxWebhooks/1.0
  ```

  The response body looks like:
  ```
  Response:
             parameter
             Content-Type: text/plain;charset=UTF-8
             Content-Length: 9
  ```

You must set the parameter type to String.