PHP-SharePoint-Lists-API icon indicating copy to clipboard operation
PHP-SharePoint-Lists-API copied to clipboard

Function write(), nothing is happening. What parameters is needed ?

Open Jedguy opened this issue 3 years ago • 1 comments

Hi all,

Thanks you for this API, i needed an API for my laravel website and you answered my request.

I've just a problem to create a folder or a file. My list in 'Documents' is a list of document (Document's name : "A1"), and when i want create an object i do : $sp->write('Documents',array('Title'=>'TEST API', 'id'=> '4')); , nothing is happening.

I don't understand what parameters i need to put on function write() for create a folder.

Jedguy avatar Feb 28 '22 15:02 Jedguy

For example,

When i display one folder with sp ->read('Documents, 1), i have an array with 17 parameters : array(17) { ["linkfilename"]=> string(24) "00 - Template rep" ["modified"]=> string(19) "2022-02-16 10:49:21" ["editor"]=> ... ["fileref"]=> string(73) "projecturl" }. Should I write each parameter with the write function? And with the same writing as you or what the function read() displays to me?

Jedguy avatar Mar 01 '22 10:03 Jedguy