This article shows how you can move your existing Sync Rules scripts into an external scripts library.
- Advanced scripting environment, connected with your instance to load scripts.
Check our guide on how to configure advanced scripting environment.
- Example scripts project with the following files: DataFilter.groovy, CreateProcessor.groovy, ChangeProcessor.groovy.
Steps to move your Sync Rules into the external directory
Open the DataFilter.groovy file to edit in your development environment
Copy-paste the code from the Outgoing sync(data filter) into the DataFilter.groovy file
Note: Please read the code comments to get more details on where to paste the code in the file.
Call the groovy file in the Sync Rules using the code provided in the file comment
The comment is located on the top of the file, below you can see how it looks. For more details check Groovy imports
Repeat the steps for CreateProcessor.groovy and ChangeProcessor.groovy files.