Define Parameters in Custom Cloud Data Sources (CCDS)
You can add and configure parameterized (dynamic), static, and configuration (SFTP/PGP) parameters to your script via the
Designer settings
tab. Example: Connection URLs, user names, passwords, start and end address for a mapped delivery route, time periods, and other information. See Reference: Parameters for information about the various parameter types. - Parameterized:Change dynamic values during script execution at runtime.
- Static: Values initialized before runtime that remain unchanged during script execution.
- Configuration: SFTP connection or PGP encryption value(s) created for the Custom Cloud Loader or Set Up a Custom Cloud Data Source (CCDS)
Before you Begin
- New to CCDS? See Concept: CCDS and Set up a Custom Cloud Data Source (CCDS).
- Required Permissions:Integration DeveloperwithinAdministration > Permission Set.
- CCDS Developers must be experienced JavaScript programmers.
- Determine what type of information the Data Designer should fill in.
Navigation
From the nav menu, go to Steps
- Add Parameters to Designer Settings
- Click on a parameter from theSettings Componentpane and drag it into theDesigner Settingstab. You can add as many as you want to be referenced in a script.
- Configure Parameter Values from Designer Settings
- Select theEditicon next to the parameters available in the Designer Settings tab. Set Parameterized variables during run time or set static variables that persist for every run.
- You can change theSetting Namefor both Parameterized and Static parameters.
- To change a parameterized variable, selectEdit parameterson theEdit Parameterized Settingswindow.Edit parameterslink is not available forStaticvariables.
- Reference the Parameters in Your Script
- Select your script from theScriptstab.
- Double-click the row containingSampleCCDSJavaScriptin theIncluded Scriptspane.SampleCCDSJavaScriptcontains templates for making a HTTPS request, Import Structure, Import Data and Preview Data functions. SeeAdaptive PlanningFunctions for a complete script example.
- Add parameters you want your script to reference.
Example:var startAddress = dataSource.getSetting('startAddress').getValue();var endAddress = dataSource.getSetting('endAddress').getValue();