Zynk Workflow Documentation

This tutorial details the basic principles when dealing with an integration between Sugar CRM and Sage 50. This workflowwill perform two basic tasks, which is the downloading opportunities from Sugar CRM to Sage (as sales orders), and uploadthe sales order number generated by Sage back to Sugar CRM.

You can download a copy of the workflow from our  GitHub samples.

Assumptions

We make the following assumptions about how the integration should work:

Download Opportunities from Sugar - Phase 1

This part of the process will download new ‘Closed Won’ opportunities from Sugar CRM and import them in to Sage as sales orders. The process consists of the following tasks:

  1. Querying Records in SugarCRM - This task will query Sugar CRM for all opportunities and their related account where the ‘sales_stage’ field is set to ‘Closed Won’, and the ‘sales_order_no_c’ field is blank. The results will be saved to the ‘sugar_opportunities.xml’ file.
  2. XSLT Transform - This task will transform the output file from the previous task to sales orders in the Zynk XML format, ready to be imported into Sage. Refer to our  API Documentation for detailed XML schema information.
  3. Importing Sales Orders into Sage 50 UK - This task will import the sales order XML generated by the previous task into Sage. It will write out any failed and successful imports to separate success and fail files.

Upload Sales Order Numbers to Sugar - Phase 2

This part of the process will upload the sales order number of successfully imported sales orders to the corresponding opportunity in Sugar CRM. As we only download opportunities in phase 1 where the ‘sales_order_number_c’ field has not been, this will prevent opportunities that have already been processed from being downloaded again. The process consists of the following tasks:

  1. XSLT Transform - This task will transform the success file from the import sales orders task to opportunity updates in the Sugar XML format. It sets the ‘sales_order_no_c’ field on each opportunity to the sales order number from Sage.
  2. Inserting Records to SugarCRM - This task will upload the opportunity updates contained in the output file from the previous task to the ‘Opportunities’ module in Sugar. The opportunities are matched based on the ‘id’ field, which was downloaded by the first task in the workflow.

Archive - Phase 3

This is the final task in the process, and will archive off all data that was used by the workflow process. This allows for traceability and will assist when debugging the workflow.

  1. Archive Workflow Data - This task will archive off all data that was used by the workflow process.

If you have any queries on any of the above, feel free to contact our support team via email at support@zynk.com or via telephone on 0191 303 7279. Please note, as stated on the Auto Mapper task we do not support any changes to XSLT.


Back | Edit on Github