Skip to content

get specific list issue #103

@uswross

Description

@uswross

Hello,

I am having trouble getting a specific list from sharepoint. I tried the example and I also tried the following:

   $listTitle = 'Archive 2017';
   $list = $this->web->getLists()->getByTitle($listTitle);
   $this->ctx->load($list);
   $this->ctx->executeQuery();

Troubleshooting the response I get is:

<TITLE>Bad Request</TITLE>

Bad Request


HTTP Error 400. The request is badly formed.

However this is caught at a much later point in the library as a warning but then nothing works:

Severity: Warning

Message: First parameter must either be an object or the name of an existing class

Filename: OData/JsonPayloadSerializer.php

Line Number: 52

Backtrace:

File: /var/www/html/application/third_party/phpSPO/src/Runtime/OData/JsonPayloadSerializer.php
Line: 52
Function: property_exists

File: /var/www/html/application/third_party/phpSPO/src/Runtime/ClientRequest.php
Line: 150
Function: deserialize

File: /var/www/html/application/third_party/phpSPO/src/Runtime/ClientRuntimeContext.php
Line: 129
Function: executeQuery

File: /var/www/html/application/third_party/phpSPO/src/SharePoint/ClientContext.php
Line: 83
Function: executeQuery

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions