Being able to specify the parameters that can be used in SQL queries, connection strings and file paths allows you to use a single Sync file for multiple 'organisations' in Phocas. These , with the result that the same a different organisationSelect
Data item types that reference parameters
- SQL
- File
- Directory
Defining parameters
in SyncSubstitute parameters
Defined parameters can be referenced by supported data item types as substitution values. For example, a SQL data item can have the majority of its properties defined by parameters:
Parameters
Connection details
parameter * The
using parameters:
Path to sync file:
-r "c:\temp\new sync\sqlparameters.sync"
Server connection switches:
-user "phocas"
-password "phocas"
-service "http://localhost"
-source "ParametersBro"
Substituted Parameters
“localhost“phocas_testing_salesentity_1cat_3,cat_4,cat_5"Example of a scheduled Sync substituting a number of (formatted for readability):phocasphocaslocalhostSyncParamsFilelocalhostphocas_testing_sales"My source "entity_1"cat_3,cat_4,cat_5"