Skip to content
Ask the community about this page

Connect to the Timextender API with the Timextender REST data source

Warning

This article refers to Jobs and the Timextender Jobs API which have been deprecated. Please schedule TDI execution packages via Timextender Orchestration rather than using jobs

This guide shows how to use our own Timextender API endpoints for a Timextender REST data source.

The benefit of this is to show how you can add endpoints that get populated with dynamic values from other endpoints.

Essentially, when you have the following URL https://apim-txportal-prod.azure-api.net/public/jobs/{jobId}/logs you will be able to add the {jobId} part from another endpoint.

Content

Prerequisites

You need two things to use this.

  1. You need to set up the APIKey. To do this go to Admin and Security and permissions

Connect to the Timextender API with the Timextender REST data source — screenshot 1

Set up an APIKey. 2. If you have gone through the TX API documentation you will find a Postman collection. In that, you can find the domain value. This one apim-txportal-prod.azure-api.net.

Initial setup

Common Settings

I start by adding a new data source and choosing Timextender REST. Then I give it a name and add the following in the Base URL

[https://apim-txportal-prod.azure-api.net/public](https://apim-txportal-prod.azure-api.net/public/)

Like so.

Connect to the Timextender API with the Timextender REST data source — screenshot 2

Then I click Add in the Header and apply the APIKey like so.

Connect to the Timextender API with the Timextender REST data source — screenshot 3

Be sure to set it to Is sensitive.

All Jobs endpoint

In the endpoint path field add jobs change the name to All jobs and click Add endpoint.

Connect to the Timextender API with the Timextender REST data source — screenshot 4

This is all needed, no other settings should be applied.

All statuses endpoint

In the endpoint path field add jobs/status, change the name to All statuses, and click Add endpoint.

Connect to the Timextender API with the Timextender REST data source — screenshot 5

That is all needed for the initial setup.

Dynamic value endpoint

Before doing this step you must add the data source with a Short name and a long name. Then applied it to an ODX instance. You also need to have synchronized the data source successfully.

Like so.

Connect to the Timextender API with the Timextender REST data source — screenshot 6

And in the ODX.

Connect to the Timextender API with the Timextender REST data source — screenshot 7

Before the setup

Before starting we need to know what the table that has the All Jobs endpoint generates looks like. So I will run the transfer task on the data source. It is also so the endpoint will have some values to choose from when you synchronize.

It should look like this.

Connect to the Timextender API with the Timextender REST data source — screenshot 8

What you need to note is that the name of what will be the {jobId} part is called Id.

Setup dynamic value from the endpoint

Now we can create the All job logs endpoint.

Type job/{Id}/logs in the path field, give it the All job logs name and click Add endpoint.

Connect to the Timextender API with the Timextender REST data source — screenshot 9

The {Id} refers to the Id field of the All jobs table, so if you wanted to add the name instead it would be {Name}. Not that you would of course.

Now expand the Advanced section and click Enable in the Dynamic values area. Change the Dynamic values source option from Query to From Endpoint table.

Connect to the Timextender API with the Timextender REST data source — screenshot 10

Expand the Select endpoint field and choose the All Jobs table.

Connect to the Timextender API with the Timextender REST data source — screenshot 11

Then expand the Select table field and choose the

Connect to the Timextender API with the Timextender REST data source — screenshot 12

Now it should look like this.

Connect to the Timextender API with the Timextender REST data source — screenshot 13

Save the change to apply the endpoint, synchronize the TXAPI data source, and run the transfer task.

Now it will look like this.

Connect to the Timextender API with the Timextender REST data source — screenshot 14

Use the result in Timextender Data Integration

It generates two tables All job logs_TX_Root and JobExecutionLogs. It is possible to populate the JobExecutionLogs table by relating the Id field from All job logs_TX_Root to the JobExecutionId from JobExecutionLogs and relating the two TX_Autogenerated_Element_Id fields.

Connect to the Timextender API with the Timextender REST data source — screenshot 15

Discussed in the community

Looking for related questions…

Didn't find your answer? Ask the community about this page — questions are answered by Timextender experts, partners and other users.