Custom Script
Custom Script Editing for ERP Connectivity#
When creating a new channel in Shopranos, if you select one of the existing ERP connectivity options, a default prototype JavaScript script will be automatically loaded. This default script is tailored to handle the integration with the selected ERP system.Key Points:#
1.
Upon selecting an ERP connectivity option during channel creation, a prototype script is loaded by default. This script is pre-configured to manage the standard operations required for the selected ERP system.
2.
Switching to Custom Script:If you need to modify the default script to better fit your specific requirements, you can switch to a custom script mode.
To do this: You must toggle the "Use Default Script" flag to false
. This action enables editing of the script, allowing you to make custom adjustments.
3.
Implications of Using a Custom Script:No Automatic Updates: Once you switch to a custom script, your script will no longer receive any updates or corrections that may be made to the default script by the system or developers. This means that any future enhancements or bug fixes applied to the default script won't be reflected in your custom version.
Full Control: While you lose the automatic updates, you gain full control over the script. You can modify, enhance, and optimize it according to your specific needs.
Example Scenario:#
You select an ERP like SAP during channel creation. A default JavaScript script designed to handle data import/export with SAP is loaded. If you don’t need any changes, you leave the "Use Default Script" flag set to true
.
If your SAP integration requires additional logic or customization, you toggle the "Use Default Script" flag to false
. This allows you to edit the script. From this point, the script becomes custom, and you are responsible for maintaining and updating it as necessary.
Important Considerations:#
Evaluate Custom Needs: Before switching to a custom script, evaluate whether the default script meets your needs. If only minor changes are required, you can make these in a custom script, but be aware of the trade-off in losing automatic updates.
Test Thoroughly: If you decide to customize the script, thoroughly test your changes in the Datapump Playground or staging environment before deploying them to production.
By understanding and utilizing the custom script editing feature, you can tailor your ERP integrations to match your specific requirements while maintaining control over script updates and behavior.Modified at 2024-08-26 11:17:57