Hi Everyone,
Can anyone please tell me how can I retrieve the pdf files as a link in the interface, based on the name coming from database table? The document is stored in the folder in appian.
Thank You
Discussion posts and replies are publicly visible
When you say "the pdf files", and "the folder", which ones are you referring to exactly? What name are you getting from the database - the filename? If so, which part(s)? Is there any particular reason the DB table isn't storing the Appian Doc ID instead of a "name"? That would make the process much more straightforward.
Yes that is correct, storing the document id in the database.
In that case you would just use a!documentDownloadLink() and point it to the document ID. I recommend doing this inside a!richTextDisplayField(), since it gives you control over other things like styling and link visibility, which don't exist in the older a!linkField().