XML
Learn how to use the XML storage action to build your workflows
Introduction
The XML Storage Action allows users to perform structured data transformations between systems using XML. It supports both parsing existing XML files and composing new XML documents based on user-defined templates and data streams. This action allows users to define a structured schema for reading from or writing to external systems (like Salesforce, FTP servers, or CRMs). This ensures accurate parsing and mapping of data during transfer processes.
Configure the XML Action
Step 1: Configure XML
In the Flow Builder tab, drag and drop the XML storage action into your workflow.
Click Configure to open the XML Storage configuration tab.

Step 2: Select Operation
In the Operations dropdown, select whether the action is to:
Compose: To write from XML to a destination

Step 3: Define File Structure
In Compose to, use dynamic values. For example, you can use values like a DateTime field in the file name.
Proceed to Configure XML.

Step 4: Generate XML Structure
Use a sample file from your source data and convert it into a XML structure.
Ensure the XML includes field names and nested tags as per the source (for example, Salesforce fields).
Example:
<Opportunity>
<Name>Acme Inc</Name>
<Stage>Prospecting</Stage>
<Amount>5000</Amount>
<CloseDate>2025-06-09</CloseDate>
</Opportunity>
Step 5: Test the XML Configuration
Click Test to validate the schema.
The output preview will show how the data appears.
Step 6: Enter the Enclosing Tag
Provide the Enclosing Tag. Wrap your XML output with custom root tags with comma separation (for example, root, invoice)
Step 7: Save to FTP
Drag and drop the FTP storage action from the left panel below XML action and set the destination FTP file path.
The system will now write the Salesforce data as an XML file to FTP.
XML Parsing and Mapping
Reading from FTP
Step 1: Configure XML
Navigate to the Configure tab.
Step 2: Select Operation
In the Operation dropdown, select:
Parse: To read from a source and convert to XML
Upload or define the XML schema in the Sample Document field. This structure tells the system how to parse the incoming XML.

Mapping to CRM
After parsing drag and drop the Transform and Write action, choose Operation, Target Connector and Object accordingly.
Click Map.
In the right side schema, all the Fields that are defined above, will appear here.
Drag and drop fields from the XML to the CRM fields.
Key Concepts
Term
Description
XML Structure
Blueprint of how data is formatted in XML
Schema
Field definitions used for mapping and parsing
Compose
Interface where users define filename structure
Test Output
Sample result to validate XML correctness
Mapping
Field-to-field connection between source and destination
Best Practices
Always use a sample file to derive the XML schema.
Validate the structure using the Test function before finalizing.
Use ChatGPT or similar tools for fast conversion of sample data (like JSON or tables) into XML to use in the Compose or Parse operations.
Ensure that XML field names match Salesforce API field names or source system labels.
Operation Examples
Common Scenarios to use the XML Action
Salesforce to FTP: Read Salesforce Opportunity data, compose XML with dynamic fields (like DateTime), configure schema, test, and write to an FTP path as XML.
FTP to CRM: Read XML from FTP, parse using the defined schema, and write to a CRM by mapping XML fields to CRM fields.
FAQs
1. Can I automate XML integrations on a schedule?
Yes, DBSync supports flexible scheduling for XML integration jobs - hourly, daily, or custom intervals.
2. What if my XML structure changes?
Update your sample file and schema in the XML Storage Action, then revalidate using the Test function.
3. Which systems are supported?
You can integrate with popular CRMs (Salesforce, HubSpot, Microsoft Dynamics 365), ERPs (QuickBooks, NetSuite), cloud storage (AWS S3, Google Drive, FTP/SFTP), and more.
Last updated