Variable

Learn more about adding variable to a workflow

Introduction

The Variable action 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

Define Variables

Before using a variable, you need to define the variables.

  1. Drag and drop a Variable action into your flow.

  2. Click Configure to set up the variable name and assign it a value.

This value can be retrieved from a previous query or hardcoded for testing purposes.Adding Variables

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 from fx panel in the right side to display its value in the console.

Save the Flow

After configuring the variable, click Save to store your flow.

Run the Integration

Click Run to execute the flow. Monitor the console output to verify that the variable action 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 action worked as intended.Console Window

PRO TIP

  • Use meaningful variable names and ensure consistency in naming conventions to make your workflows easier to understand and maintain.

  • Ensure that you save every Action configuration.

Implementing Conditional Logic with "If Conditions"arrow-up-right: Learn how to apply conditional logic within your workflows to dynamically control the execution of tasks and flows.

For” Conditionarrow-up-right: Explore "For" condition, to enhance your workflow logic.

Creating and Managing Queriesarrow-up-right: Discover how to build and manage queries for retrieving and validating data across your integrations.

Debugging Flowsarrow-up-right: Explore techniques for troubleshooting and debugging your workflows to ensure they run smoothly and efficiently.

Last updated