How to fetch the latest record when its ID keeps on changing

You don’t need the ID. Have a look on the target URL which looks like: https://enot.publicprocurement.be/enot-war/bulletin/2021/04/BDA_Bulletin_20210420.pdf

You simply build this URL by: “https://enot.publicprocurement.be/enot-war/bulletin/” + now.tostring(“yyyy/MM”) and so on.

Then you do this: