Home > Forum > Database > SOLVED: Creating a Data Table with Attachment-Links from a WFD_ID

SOLVED: Creating a Data Table with Attachment-Links from a WFD_ID
1

MVP

Hi folks,

today I have a special problem and hopefully somebody of you already has a solution.

I am working on an internal Knowledge-Database.
One given requirement is: In case of an update, the old entry has to be archived
and a new entry with all previous information should be created to be edited.
So far no problem - except for the attachments.

I dont want the old attachment files to be copied to attachment section. Instead of that
it would be nice to have a DATA TABLE with _links_ to all former files, so e.g. the editing person
could open the original word file, edit it and attach the modifed version to the new instance.

I have the WFD_ID of the original Instance as technical field.

Has anybody an idea, how i could create those links?

Thanks in advance,
Bjoern

MVP
In reply to: Bjoern Poller

Found some tips here: https://community.webcon.com/forum/thread/1160

Solution for version with a Preview-Link -> see picture

OPEN QUESTION:
Does anybody know the link for a direct download?
Just deleting the "/preview" at the end doesn't work!

Hi Björn,

this link works in 2022.1.2:
https://*.domain.com/api/nav/db/1/attachments/3062/download

You can easily verify it by
1. executing the download link from the context menu of an attachment,
2. open the download window in the browser
3. Right click on the file and copy the download link

The attached file shows how it looks like in edge.


Best regards,
Daniel