Forum Discussion
@swright your input JSON doesn’t look correct. If you want to reference two variables, they need to be within the same JSON object. For instance, this is an example of an input document to the REST PATCH Snap that would allow referencing $serviceUrl
and $requestBody
in the Snap settings:
[
{
"requestBody": {
"ExternalIdentifierNumber": "002500012"
},
"serviceUrl": "https://"
}
]
If you wanted two PATCH requests to be sent (sequentially, to different URLs etc), the input body would look like:
[{
"requestBody": {
"ExternalIdentifierNumber": "002500012"
},
"serviceUrl": "https://someurl.com"
},
{
"requestBody": {
"ExternalIdentifierNumber": "ABCD"
},
"serviceUrl": "https://anotherurl.com"
}]
@stewartbulloch yes it would be in the
jcc.bat
file but it’s a bit more complicated.In that file you will see a line like:
%CYGRUNSRV% -I %SERVICE_NAME% -1 %SNAPLEX_LOG% -2 %SNAPLEX_ERR% -d %SERVICE_DISPLAY% -p %JAVA_EXE% -c %SNAP_HOME% -f "SnapLogic Snaplex (Java)" -a '%START_OPTIONS%' -o -V -e 'SL_ROOT=%SL_ROOT%' -e 'PATH=%PATH%' -e 'JAVA_HOME=%JAVA_HOME%'
I believe here you can add a new
-e 'http_proxy=VALUE'/'https_proxy=VALUE'
pair and, after the service is reinstalled withjcc.bat install_service; jcc.bat start
, the environment variable should be available now in the Windows environment.If indeed
http_proxy
(and its HTTPS equivalent) is the environment variable a certain Windows utility uses for proxy configuration, then it should work.I’m less familiar with Windows OS though for this use case so I’d be interested to hear from anyone if this worked for them.