Query
Learn more about querying a workflow automation
Last updated
Learn more about querying a workflow automation
Last updated
A query allows you to select a target based on specific criteria. You can associate a segment code with the query results and insert additional data into it. By customizing the search parameters, you can obtain query results tailored to your criteria for work items. A query consists of various conditions that define your search, bringing results in line with the set parameters.
To create a sample query and debug the results using Salesforce Accounts as an example, follow the tutorial below:
Example Query: Get Salesforce Accounts and print using Debug.
Login to DBSync Cloud Workflow: Navigate to the DBSync website and click on Login and choose Cloud Workflow.
Enter Login Credentials: Provide your User Name and Password set up during signup, then click Login.
Navigate to the Home Screen: You'll be redirected to the DBSync Cloud Workflow Home Screen.
Create a Project: Click Create and name the project Query.
Add a Task: Add a task and name it Query Salesforce Accounts.
Assign it to Bot and click Configure.
Configure the Query: Drag and drop a Flow action. Click Configure and provide a description for the flow (e.g., Get SF Accounts Information).
Drag and drop a Query action. Click Configure, select the Source as Salesforce, and Object as Account.
In the configure query section, select All fields or choose individual Salesforce fields. Select All Fields.
Preview the Results: Click Preview from the Configure Query section. The Salesforce objects will be displayed as Rows in the Result section.
Debug the Query: Drag and drop a Debug action. Click Configure and define the variable.
Click the fx icon to access the schema, then drag and drop the name schema onto the debug panel. Select the correct Name field to display the Salesforce account names.
PRO TIP
When using the Debug action, ensure you select the correct field schema to avoid confusion and ensure accurate data output.
Click the Close icon and Save.
Click the Run icon to execute the integration.
The console will display the executed query and print the Salesforce Account Names.
Log Management - This section explains how to manage and view logs in DBSync, helping you troubleshoot and monitor integration processes.
Transformation Examples - This page offers examples of how to use query transformations in your integration projects within DBSync.