How to get latest file in a web using uipath

I have to download an attachment from a workflow that has instances.

As a rule, I want to download the latest file attached to the website.

The only reference I have in the selector is parentid.

webctrl aaname=‘[EXCEL File]’ parentid=‘anexo-870185’ tag=‘SPAN’ /> - This is the file I want

webctrl aaname=‘[EXCEL File]’ parentid=‘anexo-867649’ tag=‘SPAN’ />

How can I get the last attachment?

could you include a screenshot of the website? If the newest file is always the first item in the list you could reference the index “idx”