This website uses Cookies. Click Accept to agree to our website's cookie use as described in our Privacy Policy. Click Preferences to customize your cookie settings.
Looking for a function to help add sequence numbers to a json array. End goal is to apply a sequence to matching values, starting with 01, subsequent values get a sequence of 02…03… 04 etc. I could do this in a mapper, or in apache velocity as part...
I’m using a Multi File Reader to pull files from an sftp site. When it finds a file or files, it works great. However, if there is no file found, it does not do anything… no error and no processing. Is this expected? ( I would think this should g...
I’m wondering if it is possible to add utilities to snaplogic to support scripting. Specifically I’m looking for something to help write dynamically generated (via xslt) html into a pdf file , basically to get a pretty print data output to our sftp s...
Does snaplogic have a mechanism like includes method?
e.g.
“AwardStatus”:[“ACCEPTED”,“OFFERED”,“CANCELED”],
Something like
$AwardStatus.includes(“CANCELED”) ?
I would like to transform data as shown below. The idea is that M and W are associated with 8:00 start and 9:15 end (M,W=8:00-9:15). Tuesday and Thursday are associated with 14:45. M and W are currently separated by a comma, So are T and TH. M,W ...
viktor_n:
$Records.map(record => {“Award”: record.Award, “Sequence”: record.Award.map((x, index) => record.Award.slice(0, index + 1).filter(y => y == x).length.toString())})
When I remove the [0] at the end it does produce all, but it changes ...
j.angelevski:
[0]
@viktor_n , @j.angelevski
My initial testing worked with a limited record, however I’m noticing as I apply this to a more extended record structure, how the predicate of [0] impacts this. In this case, it always hits the fir...