Error when use rest api to get SPList in SharePoint online

Tran Phuoc Khanh Luan 1 Reputation point
2020-11-02T08:53:01.94+00:00

Hi everyone,
I use ms Flow to build break the inheritance in document SharePoint list in SP online as flowing:
/api/attachments/36700-capture2.jpg?platform=QnA

But I have meet an iss/api/attachments/36700-capture2.jpgue?platform=QnA with error message : "List 'Shared Documents' does not exist at site with URL 'https://Testabc.sharepoint.com/sites/testf6'

/api/attachments/36726-capture3.jpg?platform=QnA

Please help me.
Thanks,
John

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,623 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,994 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Baker Kong-MSFT 3,791 Reputation points
    2020-11-03T01:39:22.193+00:00

    Hi @Tran Phuoc Khanh Luan ,

    From the error screenshot, I suspect the list title parameter you specified in getByTitle() is not correct, thus it did not find such a list.

    For example, my SPO site has below document library, it's a default library after site creation.

    37003-image.png

    Its list title is 'Documents'. 'Shared Documents' is a library name or root folder. You can find the title of a list through list/library settings:

    36917-image.png

    Best Regards,
    Baker Kong


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.