Skip to main content Skip to complementary content

tODataInput Standard properties

These properties are used to configure tODataInput running in the Standard Job framework.

The Standard tODataInput component belongs to the Internet family.

The component in this framework is available in all subscription-based Talend products.

  • This component is available only when you have installed the 8.0.1-R2024-01 Talend Studio monthly update or a later one delivered by Talend. For more information, check with your administrator.
  • This component only supports OData version 4.x.

Basic settings

Property type Either Built-in or Repository .
  • Built-in: No property data stored centrally.
  • Repository: Select the repository file in which the properties are stored. The fields that follow are completed automatically using the data retrieved.
Root URL Type in the URL address identifying the root of the OData service you want to access, for example, https://services.odata.org/V4/xxx. For more information, see Service Root URL.
Authentication type Select one of the following authentication methods depending on the server security requirements:
  • No authentication: no authentication is expected to access the server.
  • Basic: A username and a password are expected. For more information, see RFC 2617.
  • Digest: A username and a password are expected. For more information, see RFC 2617.
  • Bearer token: A raw access token is expected. It will be carried into the request header as Authorization: Bearer <your token>.
  • NTLM: A username (that may contain a domain name) and a password are expected. For more information, see NT LAN Manager (NTLM) Authentication Protocol.
  • API key uses a flexible way to pass an API key token to the server, including the ability to select where to pass it, its name and a prefix:
    • Destination: Select where the token will be set: either in a header with the given name, or in a query parameter with the given name (not recommended as the token might be visible in the logs).
    • Name: Enter the name of the header or query parameter.
    • Prefix (optional): Enter the prefix to be added in front of the token (only if the Destination is Request header).
    • Token: Enter the authentication token.
  • OAuth 2.0 automatically manages the retrieval and renewal of the access token against the OAuth server then passes it to the target endpoint as a bearer token:
    • Flow: The OAuth flow you want to execute. Currently, only the Client Credentials flow is supported.
    • Authentication mode: For all authentication methods supported, the flow and scope parameters are set in the body in the format application/x-www-form-urlencoded, with keys grant_type=xxx&scope=xxxx.
    • Token endpoint: Enter the authentication token using the format oauth2/mydomain.com/token.
    • Client ID and Client secret: Enter the client ID and client secret.
    • Scopes: Enter the scope. If not set, the scope key is not added in the body form.
Information noteTip: To enter a password, a token, or a client secret key, click the [...] button next to the corresponding field to bring out the Enter a new password dialog box, enter the password, the token, or the secret key in the text field, and click OK. Note that you can enter either a JSON string in the pure password mode or a Java expression in the Java mode. You can toggle between the two modes by clicking switch to Java mode or switch to pure password mode on the top of the text field.
Entity set Enter or select the specific entity set you want to retrieve from the service. For more information, see Addressing Entities.
Information noteTip: To visualize all available entity sets, click the [...] button next to the corresponding field to bring out the Retrieve values dialog box, and click Run in background. A new dialog box opens with all the retrieved entity sets you can select. Note that you can also provide a Custom value by selecting the Use custom value check box.

This option impacts the schema of the output flow of this component. It is recommended to update the schema by clicking the Guess schema button after setting the key/value pairs in the table under this option.

Specify entity key Select this check box to enter the key used to uniquely identify a specific entity set. For more information, see Addressing Entities.

This option impacts the schema of the output flow of this component. It is recommended to update the schema by clicking the Guess schema button after setting the key/value pairs in the table under this option.

Use $filter Select this check box to enter a query that will filter the collection of resources that are addressed by the request URL. For more information, see System Query Option $filter.

If both the Use $filter and Use $search options are applied to the same request, the results include only the entities that match both criteria.

This option impacts the schema of the output flow of this component. It is recommended to update the schema by clicking the Guess schema button after setting the key/value pairs in the table under this option.

Use $search Select this check box to enter a query that will be applied to the request URL and will return all matching entities in the collection. For more information, see System Query Option $search.

If both the Use $filter and Use $search options are applied to the same request, the results include only the entities that match both criteria.

This option impacts the schema of the output flow of this component. It is recommended to update the schema by clicking the Guess schema button after setting the key/value pairs in the table under this option.

Use $select Select this check box to enter a query that will be applied to the request URL and will return a specific set of properties for each entity or complex type. For more information, see System Query Option $select.

If both the Use $select and Use $expand options are applied to the same request, the results include only the entities that match the $select criteria, so in that case you should include the $expand criteria in the $select query in order to return all expected properties.

This option impacts the schema of the output flow of this component. It is recommended to update the schema by clicking the Guess schema button after setting the key/value pairs in the table under this option.

Use $expand Select this check box to enter a query that will be applied to the request URL and will return the related expanded resources to be included in line with retrieved resources. For more information, see System Query Option $expand.

If both the Use $select and Use $expand options are applied to the same request, the results include only the entities that match the $select criteria, so in that case you should include the $expand criteria in the $select query in order to return all expected properties.

This option impacts the schema of the output flow of this component. It is recommended to update the schema by clicking the Guess schema button after setting the key/value pairs in the table under this option.

Return type Select one of the options depending on how you want to parse the data returned by the server.
  • Record: Parses the response body and generates records (one entity per row).

  • Raw: Returns the full response body in a body column as is.
Schema and Edit Schema A schema is a row description, it defines the number of fields to be processed and passed on to the next component. The schema is either Built-in or stored remotely in the Repository.
  • Built-in: You create and store the schema locally for this component only. For more information about a component schema in its Basic settings tab, see Basic settings tab.

  • Repository: You have already created the schema and stored it in the Repository. You can reuse it in various projects and Job designs. For more information about a component schema in its Basic settings tab, see Basic settings tab.

Click Edit schema to make changes to the schema. If the current schema is of the Repository type, three options are available:

  • View schema: choose this option to view the schema only.

  • Change to built-in property: choose this option to change the schema to Built-in for local changes.

  • Update repository connection: choose this option to change the schema stored in the repository and decide whether to propagate the changes to all the Jobs upon completion.

    If you just want to propagate the changes to the current Job, you can select No upon completion and choose this schema metadata again in the Repository Content window.

Guess schema Click this button to retrieve the schema according to your settings. This button works when Status, headers and body is selected from the Returned content drop-down list or Output key/value pairs is selected and key/value pairs are set in the table under the Output key/value pairs option.

When retrieving data from OData, you can specify the format and content of the data retrieved using the schema, the Guess schema button, the Entity set option, the, Specify entity key option, the $filter/search/select/expand option, and the Return type option.

Advanced settings

tStatCatcher Statistics Select this check box to gather the Job processing metadata at a Job level and at each component level.
Connection timeout (ms) Set the timeout period (in milliseconds) for the connector to establish a connection to the server. An error occurs if an attempt to establish a connection fails.
Receive timeout (ms) Set the timeout period (in milliseconds) for receiving response data. An error occurs if no data is received when the read timeout period expires.
Use a proxy Select this option to use an HTTP or a SOCKS proxy.
  • Proxy type: Select the type of proxy you want to use: HTTP or SOCKS. The HTTP proxy support basic authentication.
  • Proxy host and Proxy port: Enter the address and port of the proxy.
  • Proxy login and Proxy password: Enter the credentials needed to authenticate to the proxy. These two fields are available when HTTP is selected from the Proxy type drop-down list.
Accept header and Headers Use these options to define the set of accepted formats for header requests as name-value pairs. For more information, see Header Accept.

If you selected Record as the return type in the Basic settings tab, you might need to replace odata.metadata=minimal with odata.metadata=full in the Accept header field in order to correctly parse all non-String primitive types.

Use custom URL parameters Select this check box to specify the parameters that will be set in the query URL after the ? character in the form of name-value pairs.
Use $skip Select this check box to specify the number of items in the queried collection that are to be skipped and not included in the result. For more information, see System Query Option $top and $skip.

If both the Use $skip and Use $top options are applied to the same request, the results include only the entities that match both criteria.

This option impacts the schema of the output flow of this component. It is recommended to update the schema by clicking the Guess schema button after setting the key/value pairs in the table under this option.

Use $top Select this check box to specify the number of first items in the queried collection that are to be included in the result. For more information, see System Query Option $top and $skip.

If both the Use $skip and Use $top options are applied to the same request, the results include only the entities that match both criteria.

This option impacts the schema of the output flow of this component. It is recommended to update the schema by clicking the Guess schema button after setting the key/value pairs in the table under this option.

Use $orderBy Select this check box to enter a query that will be applied to the request URL and will return the related resources in a particular order. For more information, see System Query Option $orderby.

This option impacts the schema of the output flow of this component. It is recommended to update the schema by clicking the Guess schema button after setting the key/value pairs in the table under this option.

Global Variables

Global Variables

ERROR_MESSAGE: the error message generated by the component when an error occurs. This is an After variable and it returns a string. This variable functions only if the Die on error check box is cleared, if the component has this check box.

NB_LINE: the number of rows read by an input component or transferred to an output component. This is an After variable and it returns an integer.

Usage

Usage rule This component can be used as intermediate step in a data flow or as an end object in the Job flowchart.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!