Native Query Block
To begin designing a flow, your first step is to select a Query Block or a Native Query Block for the Connection linked to your source data. Drag the Block from the Connections panel to the workspace.
For Connectors that support native languages, such as Microsoft SQL Server or Microsoft Dynamics 365, use the Native Query Block to write your own free form query that can join tables, restrict the source field list, or do a WHERE clause to filter data in a more flexible way. Data can be normalized without foreign keys, or de-normalized by ignoring existing relationships.
A number of caveats apply to the use of the Native Query Block. See Creating Native Queries For Microsoft SQL Server.
Block Properties — General Tab
After you have moved the Native Query Block to the workspace, you can write a query in the language supported by the Connection.
Edit Native Query Properties
- Select the Native Query block to display settings in the Properties panel on the right.
- Select the General link to open the Properties dialog to the General tab.
- Optionally change the label and add a description as described in Block Properties General Tab.
Specify And Test A Native Query
- In the Native Query Text pane, enter your query. The query can be as simple or complex as you need it to be; however, it should return a single result set. For example:
- Select Test to validate your query.
When testing a Native Query in a flow, if the source datastore does not return any data, TIBCO Cloud™ Integration - Connect cannot build the schema for the underlying metadata and the flow cannot be saved. To allow TIBCO Cloud™ Integration - Connect to build the schema, do the following:
- Create a single temporary record in the source datastore that matches the Native Query.
- Test the Native Query and ensure that it is successful.
- Save the flow.
- Remove the temporary record from the source datastore.
Block Properties — Preview Tab
Preview Source Data
Before building your flow, you can preview the first 25 records of your source data. When you open the Preview tab, TIBCO Cloud™ Integration - Connect generates, and then displays the first record in your source data to be processed when you run this flow. See Block Properties Preview Tab.
Block Properties — Errors And Warnings Tab
If there are any errors or warnings for this block, the Errors and Warnings tab displays the number of errors or warnings in the tab name. See Block And Flow Errors And Warnings.
Once you have corrected the errors, select the Validate button to update the Errors and Warnings tab.