Transform and Write
Learn how to modify a Query
Last updated
Learn how to modify a Query
Last updated
DBSync Cloud Workflow allows users to modify queries and seamlessly integrate them within workflows. The 'Transform and Write' action enables query customization or alteration without the need to recreate the entire flow. This feature is particularly useful for transforming data from one format to another and writing it to a different application.
In this tutorial, we will demonstrate how to use the 'Transform and Write' action to pull Salesforce Accounts and transform this data to insert all Salesforce Accounts as Customers in QuickBooks.
Before you begin, ensure you have the following:
A sample flow, query, and debug setup. Refer to the Query documentation for more information on query creation.
The Salesforce application connector is configured.
The QuickBooks application connector is configured.
Login to DBSync Cloud Workflow: Navigate to the DBSync website and log in with your username and password.
Create or Access Your Project: Click on Create to start a new project or select an existing project where you want to implement the transformation.
Add a Query Action: Drag and drop a Query action into your workflow.
Click Configure and set the source to Salesforce and the object to Account. You can choose All Fields or specific fields as required.
Preview Query Results: Click on Preview to display the results of the query. Ensure that the query returns the expected data.
Add Transform and Write Action: Drag and drop the Transform and Write action into your workflow.
Click Configure and select the operation as Insert, the target as QuickBooks and the object as Customer.
Mapping Fields: Click on Map to open the mapping screen.
Drag and drop the necessary fields from the Salesforce Account object to the corresponding QuickBooks Customer fields. For example, map the Display Name field in QuickBooks to the Name field from Salesforce.
Save the Mapping: After completing the mapping, click Save to save the mapping configuration.
Save the Transform and Write Workflow: Click Save to save the entire Transform and Write workflow.
Run the Integration: Click the Run icon to execute the integration. The console will display the executed query, and it will insert the Salesforce Accounts as Customers in QuickBooks.
Debugging: If needed, add a Debug action before the Transform and Write action to verify the data being processed. Configure the debug action to display relevant fields to confirm that the data is correct before it is written to QuickBooks.
Review Console Output: After running the integration, check the console output for any errors or confirmation messages to ensure the process completed successfully.
Iterate and Optimize: Based on the results and any errors encountered, make necessary adjustments to the mapping or query as needed. Repeat the process until the workflow operates as expected.
PRO TIP
When mapping fields in the 'Transform and Write' action, ensure that the data types between the source and target fields are compatible. This prevents data conversion issues and ensures smooth data transfer.