Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Latest Date Read From Set of Data from a file

Avatar

Avatar
Validate 1
Level 1
ramang22522684
Level 1

Like

1 like

Total Posts

8 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
ramang22522684
Level 1

Like

1 like

Total Posts

8 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
ramang22522684
Level 1

08-01-2018

Hi Team,

I want to get the latest date from a date column of a data file.

So could you please help me with some JS code which could server this functionality for me.

Regards

Raman

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct Reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct Reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile
florentlb
Level 10

11-01-2018

Hi,

I don't know much about JS code but one way of doing that could be to use an enrichment activity. By creating a link to the imported file as a collection, you will be able to retrieve the line (and thus its value) corresponding to the most recent date contained in the column.

If you absolutely want do to it by JS, you can query the temporary table containing the data of the file using an sqlExec command to select the Max date of the column where dates are stored.

Hope this helps,

Florent

Answers (0)