Designing and Running Pipelines
Discuss how to use the SnapLogic platform.
cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! How to change XML file to exclude root tag

I have a pipeline that runs as a taks and in the end outputs a XML file, like the following example. But I need to get the XML file without the <content> tags. Any help how to achieve that?The XML output is:<content>     <soapenv:Envelope xmlns:StUF=...

maarts by New Contributor II
  • 565 Views
  • 3 replies
  • 0 kudos

Resolved! Expression solution for transformation

I have to transform documents that look like the following: [{ “Id”: 999, “field1”: “value1”, “field2”: “value2”, “field3”: “value3” } ] Into output like this. [{ “Id”: 999, “entity”: { “path”: “field1”, “op”: “replace”, “value”: “value1” } }, { “Id”...

Thom by New Contributor II
  • 1283 Views
  • 4 replies
  • 2 kudos

Converting date into epoch

Hello, We are calling an API that uses epoch date parameters. Is there a way to convert/parse UTC timestamps to epoch? I want to set a parameter startDate = Date.now() and in the GET POST query parameter, I want to call the startDate but parse it int...

Matt by New Contributor
  • 2532 Views
  • 2 replies
  • 2 kudos

Date Epoch Example

An epoch date is either the number of seconds or milliseconds since 1 January 1970 00:00:00 UTC. UNIX and other applications use seconds, while JavaScript uses milliseconds. SnapLogic uses JavaScript as its scripting language, so the epoch date is i...

aerthal by Former Employee
  • 4477 Views
  • 1 replies
  • 2 kudos

Expression Library - navigating JSON arrays

I would like to create an expression library that traverses a JSON array, but I am unsure of the syntax as it does not seem to match what I usually use in a pipeline (JSONPath).Say I have "LateralSize" in one parameter and the following in the second...

reuben by New Contributor
  • 561 Views
  • 2 replies
  • 0 kudos