XML
Learn how to use the XML storage action to build your workflows
Last updated
Learn how to use the XML storage action to build your workflows
Last updated
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.
Choose whether the action is to:
Read from a source and convert to XML
Write from XML to a destination
Navigate to the Compose tab.
Use dynamic values. For example, you can use values like a DateTime field in the file name.
Proceed to Configure XML.
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 (e.g., Salesforce fields).
Example:
Click on Test to validate the schema.
The output preview will show how the data appears.
Set the destination FTP file path.
The system will now write the parsed Salesforce data as an XML file to FTP.
Upload or define the XML schema again.
This structure tells the system how to parse the incoming XML.
After parsing:
Go to the Console/Mapping screen
Fields defined in the schema will appear
Drag and drop fields from the XML to the CRM fields
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
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 Read or Parse operationsz.
For complex mappings, take screenshots and document field relationships.
Ensure that XML field names match Salesforce API field names or source system labels.
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.
Read from Salesforce Opportunity
Compose the data structure (including dynamic fields like DateTime)
Configure XML
Define the XML structure using sample file format
Generate XML based on Salesforce fields
Test the XML schema
Write the structured XML to an FTP path
Read XML from FTP
Parse using defined schema
Write to CRM system (e.g., Console)
Drag and drop mapping fields based on the schema