Tip #33: Maintain uniform data in all your applications using Server Scripts in Qntrl

Tip #33: Maintain uniform data in all your applications using Server Scripts in Qntrl



Server scripts in Qntrl provide command to customers to code their own scripts that run on their databases or servers, executing business operations and transferring data to and from Qntrl. It helps develop company-specific business logic to manage databases, validate Qntrl’s data with server-side data, integrate with third-party applications, and automate activities in business workflows.
 
Let us understand server scripts better using a business case.
 
Business Case
Zylker Corp, an IT company, maintains an external database server that holds all their client data. Every time a client request is filed in Qntrl, Zylker wants the client details to be auto-fetched from the database. Also, when a client request is completed, a new invoice has to be raised in a third-party invoice application using the details available in Qntrl.
 
Solution
Zylker's requirement can be solved by coding 2 different server scripts:
  1. Develop a script for fetching and validating data from a third-party server. Refer the sample script.
  2. Develop a script for transferring data to third-party applications. Refer the sample script.
 
This helps you avoid data clashes between different applications and maintain one central server. Server scripts also ensure complete data security and privacy as customer data is stored only in their servers and not in Qntrl.
 
We’ve documented a detailed guide solving some real-time business cases for you.
 
We hope these scripts are helpful to you. In case you have any special requirements about server scripts, leave a comment below or email us at support@qntrl.com.