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

Forum Posts

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
  • 2729 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
  • 3742 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
  • 5473 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
  • 1683 Views
  • 2 replies
  • 0 kudos

Username / password auth via post request

We've got a service that needs authentication via Post/Put request with the following body:```{"U":"someUsername","P":"someSecurePassword","L":"EN"}``` Now with the rest post snap, i can  store the data in a "basic auth" account, and use the followin...

Matthias by New Contributor III
  • 3951 Views
  • 6 replies
  • 0 kudos