A valid connection to an app, in this case we will use Odoo Trigger “Retrieve Records using Wiresk’s Query Builder”
Open the Query Builder Settings Copy Link
Create a new Flow or open an existing one by going to Group > select Group > Flows tab > Select or create a Flow.
Refer to “how to create a Flow in Wiresk“
Add Odoo Trigger “Retrieve Records using Wiresk’s Query Builder” to the Flow.
1 – Select a valid connection to Odoo app.
2 – Configure the recurrence rule to schedule the Trigger.
Choose the Entity Copy Link
3 – In the parameters section, select the Entity (set of data that contain records) in Odoo.
For example, “Calendar event”, “Email Thread”, or “Companies”. In this case we will select “contact”.
4 – New tabs appear to configure the Query Builder.
You can optionally select and configure :
- the related entities to link related entities in your data source (e.g., Odoo) to the primary entity you’re querying.
- Configure filter to narrow down the records being retrieved by specifying conditions.
- Configure grouping to group the retrieved records based on certain fields or attributes.
Configure columns Copy Link
Select the fields or columns of data to include in your query results.
- Minimum Columns: At least 1 column must be selected to preview data.
- Maximum Columns: Up to 50 columns can be included in the query results.
- Error Handling: If no records are found or columns are not configured, you might see the error: “Cannot convert undefined or null to object.”
Click on the “Edit Columns” button, on the prompted screen select the column: Complete Name, Job position and Email.
Keep in mind that, the columns that are available will vary depending on the selected entity.
Now, click on save. You can notice that the selected columns appear in the parameters.
Preview Data Copy Link
To get the contacts information from Odoo Database, Click on the “Preview Data” button to view a sample of the records your query retrieves before finalizing it.
Note: At least 1 column must be selected to enable data preview.
By default Wiresk Query Builder shows up to 10 records at a time, starting at record 0.
You can adjust the starting record and the number of records displayed as needed by entering the number in the field “Number of records” and “Begin at record”.
Configure Sorting Copy Link
You also have the option to sort the columns in ascending or descending order.
Click on “Configure Sorting” button, on the prompted screen, click on “Add Rule” button.
In the field “Entity”, choose the column that you previously selected for display, for example “Job Position”, and then select your sorting method. Click on save.
Refresh the Query result by clicking in the “Preview Data” button.
By using Wiresk’s Query Builder, you can visualize the result in second and use that retrieve data for Mapping fields in your Flows.
Don’t stop here! Copy Link
Explore our User Guide here.
For a complete tutorial on how to create a Flow, see “How to create a Flow in Wiresk”