Write the scripts so the needed data is retrieved. These scripts reference the unique names created in the Parameters Maintenance Panel.
- As a Data Designer with Integration Developer permissions, visit Integration > Design Integrations
- Click -- Create New Data Source -- in the Component Library under Data Sources.
- Select Custom Cloud Data Source, specify its name and click Create.
- When the CCDS Authorization dialog appears, there are two options.
- Choose “Don’t Require OAuth” if you are not using OAuth.
- Choose “Require OAuth” and select an OAuth service. Only the OAuth services configured within the Credentials area of the Component Library for an instance are visible. See Creating Credentials in Working with OAuth for more information.
- Visit the Scripts tab. In the Source URIs field, enter the URIs your scripts connect to separated by a semicolon (;). The Source URIs field is only used to help you identify and document the underlying source system your script connects to and is not used by the software for any other purpose.
- Click Edit next to the example script.
- The script editor opens with an example script providing code comments explaining what elements are required.
Scripts can be formatted and beautified in the editor with the keyboard shortcut Ctrl+B.
Trigger find and replace with the keyboard shortcut Ctrl+H.
- Once you have all of the necessary functions written to connect to the internet addressable system of your choice, click Save in the actions panel.
Best Practice: Syntax errors are only discovered when a script is run. Due to the sparse nature of error messages in the log file it can be difficult to locate a problem if you've made many changes. Make relatively small changes at a time so that errors are easier to find.
CCDS scripts should perform the following general steps on Adaptive Planning servers when attempting to connect to internet addressable systems for importing their data:
- Test the connection to the source, using the testConnection function from your script.
- Import the data structure, using the importStructure function from your script
- Preview the data, using the previewData function from your script.
- Import the data, using the importData function from your script.
The following full examples of scripts are provided:
Uber (with parameters)