I'm trying to insert new record to a SharePoint 2013 online (Office 365) list, which I created, using https://github.com/vgrem/phpSPO
From the description it looks straight forward to add new record, but I get following error:
'A type named 'SP.Data.pizzaListItem' could not be resolved by the model. When a model is available, each type name must resolve to a valid type.'
Code that gives the error is:
$itemProperties = array( "__metadata"=> array("type"=> "SP.Data.pizzaListItem") , 'Title' => 'u_'.$rand , 'Location' => 'L_'.$rand , 'Type' => 'Adult' , 'Food' => 'Special' ); var_dump($itemProperties); $taskItem = $list->addItem($itemProperties);
I am starting working with SharePoint lists and I tried to find out what what that error means on the net, but couldn't find anything useful. Can someone point me in the right direction?