GanguP
2 years agoNew Contributor III
Parse complex file format and generate sequence number
I am trying to parse a file with a complex format. It hasn't been easy as I am new to Snaplogic. In the below example, I am trying to combine the four rows. In order to do that I am thinking to assign the same seqeunce number to the group highlighted in yellow then use Aggregate to combine based on the sequence number. How do I generate the sequence number?
It is because the
parse
method expects a number but you are providing a string value.
You need to parse the “Modified_Date”, you can do so by usingparseInt(string)
.In your case would be:
parseInt($Modified_Date)
And the full expression to format the date would be:
Date.parse(parseInt($Modified_Date))