Forum Discussion

jeffshurtliff's avatar
4 years ago

How can we retrieve the preview URL (or attachment-id) for PDF attachments?

I'm trying to set up a custom component that makes a more prominent button for users to know they can preview an attached PDF in articles, but I'm having a hard time finding where the URL (or even th...
  • Claudius's avatar
    4 years ago

    Looking at the documentation for the attachments collection the id field in the collection should indeed be a unique ID for that individual attachment. Instead, it seems to be the incremental identifier (first, second third...) for all attachments of a message. This looks like a LiQL bug and there wouldn't be any alternative to obtain that correct attachment-id. I suggest you create a case with Khoros to have this investigated.