0

I have attachment Id and I need the URL for that particular attachment.

But In my LWC component I am constructing the URL programmatically like:

I want to avoid hardcoding the first part of the string /servlet/servlet.FileDownload.. Is there anything similar in LWC that we can use to get the URL directly

2
  • 1
    Can you add relevant code? Oct 7, 2020 at 9:02
  • Are you talking about org instance URL?
    – Sarvesh
    Oct 7, 2020 at 13:51

1 Answer 1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .