Variable
Learn more about adding variables to a workflow
Introduction
The "Variable" condition in DBSync Cloud Workflow allows users to create dynamic workflows by utilizing variables that can hold data values. This enables you to make decisions within your workflow based on the values stored in these variables, enhancing the flexibility of your integrations.
Steps to Use Variable Condition
Login to DBSync Cloud Workflow: Navigate to the DBSync website and log in using your username and password.
Create or Open a Project: Click on Create to start a new project or select an existing project where you want to implement the variable condition.
Add a Flow Action: Drag and drop a Flow action into your project workspace. Click Configure to provide a description for the flow (e.g., Variable Condition Example).
Define Variables
Before using a variable condition, you need to define the variables. Drag and drop a Variable action into your flow.
Configure: Set the variable name (e.g., 'AccountName') and assign it a value. This value can be retrieved from a previous query or hardcoded for testing purposes.
Add the If Condition Action
Drag and drop an If Condition action into your flow. Click Configure to set up the condition.
Configure: Select the variable you defined (e.g., AccountName) and specify the condition (e.g., equals (=) and set the value to SGDS).
Define Actions for True and False Outcomes
Below the condition, define actions for both the True and False outcomes.
True Outcome: Add an action that inserts a customer into QuickBooks or logs a success message.
False Outcome: Log a different message or take no action.
Add a Debug Action (Optional)
To verify the value of the variable, add a Debug action. Click Configure and in the debug panel, drag and drop the variable (e.g., AccountName) to display its value in the console.
Save the Flow
After configuring the variable condition and actions, click Save to store your flow.
Run the Integration
Click the Run icon to execute the flow. Monitor the console output to verify that the variable condition is evaluated correctly and that the appropriate actions are taken based on the condition.
Review Results
After running the integration, check the console output for any errors or confirmation messages. This will help you understand if the variable condition worked as intended.
PRO TIP
Use meaningful variable names and ensure consistency in naming conventions to make your workflows easier to understand and maintain.
Related Content
Implementing Conditional Logic with "If Conditions": Learn how to apply conditional logic within your workflows to dynamically control the execution of tasks and flows.
“For” Condition: Explore "For" condition, to enhance your workflow logic.
Creating and Managing Queries: Discover how to build and manage queries for retrieving and validating data across your integrations.
Debugging Flows: Explore techniques for troubleshooting and debugging your workflows to ensure they run smoothly and efficiently.
Last updated