parthasarathy B

parthasarathy B

  • NA
  • 927
  • 100.8k

How to get Library Name using sp.web.getFileByUrl

Jun 14 2021 7:47 AM

Hi, 

Is there any way to get the library name in the SP.web.getFileByUrl.

I have tried the below code but not getting library name 

let result = await sp.web.getFileByUrl("https://sample.sharepoint.com/:p:/r/sites/SampleSite/SampleLibrary/test/test.docx?d=w1db9f77e26354f7e8301ff3ddda7dff0&csf=1&web=1&e=O2hf6u").select("*").get()

 


Answers (3)