0

I am doing a Lightning remediation for a client moving over from Classic. They have a home page component that has a link pointing to a library directory in Files, not a specific File, but just a directory under Libraries. How does one obtain this URL and link to it in Lightning? I've googled around and have found just about everything EXCEPT what I am looking for. Any ideas? Please and thanks!

0

ContentWorkspace

Represents a content library. This object is available in versions 17.0 and later. Use this object to query libraries to find out where documents can be published.

Supported Calls:- create(), delete(), describeSObjects(), query(), retrieve(), update()

Use Name or DeveloperName field of ContentWorkspace to get the id the library and then use this url:- /lightning/r/ContentWorkspace/recordId/view

Or simply go to Classic and open the Library which you want to refer in the link and get the id from Url and again use the same URL format stated above. i.e /lightning/r/ContentWorkspace/recordId/view

Read more here:- ContentWorkspace

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.