Universal Data Sync (UDS) – Create Actions Overview

1. Feature Overview

In Universal Data Sync (UDS), Actions are the building blocks of a workflow. When a trigger initiates a workflow, one or more actions are executed sequentially or conditionally to perform tasks such as API calls, transformations, or returning a custom response to the API caller.

 

2. Prerequisites

  • You must be an Administrator user, or access must be shared to you by an Admin user
  • The Universal Data Sync Connector is a paid feature. To enable it on your account, contact your account manager, or write to support@leadsquared.com.
  • Before creating actions, you must select a trigger for your data flow. For more information, see Select a Trigger.

 

3. Action Types

At present, UDS supports the following action types:

 

4. How to Add an Action

  • Click on + Action on panel and select form available action and complete the configuration.
  • Click on + Return (or use the + icon) to add a Return Response card

how to add a uds action

 

5. Action Conditions

Conditions can be configured for each action to determine whether it should execute based on incoming data or system variables. These conditions are evaluated at runtime using context variables.

Example Condition:

lead.mx_Payment_Amount > 10000

This condition ensures the action only executes if the payment amount is greater than 10,000.

action conditions

 

6. Rearrange Actions

You can rearrange the sequence of actions within a flow by dragging and dropping them. This allows you to control the exact order in which tasks execute. Rearranging actions is especially important in synchronous flows, where execution order impacts the response logic.

rearrange actions

 

7. Action Controls

The following controls are available for managing actions:

  • Disable – Skips execution of the action for new requests. Requests already received will continue to be processed even after the action is disabled.
  • Edit – Modify the configuration of the action
  • Rename – Edit the name and description of the action. Some of the templated actions may not support renaming. Renaming an action will affect the response mappings in other actions that reference it.
  • Duplicate – Clone the action with the same configuration
  • Delete – Remove the action from the workflow

Even when renaming is restricted, descriptions of actions can always be edited to improve readability.

action controls

 

8. Execution Behavior

The execution pattern of a flow varies depending on whether the Return Response card is used.

Scenario Execution Behavior
No Return Response Action Entire flow executes asynchronously
With Return Response Action Pre-return actions are synchronous; post-return are asynchronous

This pattern ensures that critical sync responses (like lead IDs or acknowledgments) can be delivered instantly, while less time-sensitive operations are queued.

 

9. Recommendations While Creating API Actions

  • Store credentials at the app level using global variables to ensure reusability across multiple flows.
  • Avoid hard-coding credentials directly in the action configuration to maintain security and portability.
  • Use system variables wherever possible when working with LeadSquared APIs to leverage built-in context and reduce manual effort.

 

Any Questions?

Did you find this article helpful? Please let us know any feedback you may have in the comments section below. We’d love to hear from you and help you out!

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments