May 02 2019 01:17 PM
Hi,
I have created a web part and meanwhile I was testing it in workbench I was available to create new items from the web part. But when I deploy and install the app in Sharepoint online I can't create new items.
The webpart is reading from the list and showing the items.
But when I try to create a new item from the webpart, no new item gets created.
I can't any error in the console.
What can be the problem?
Best regards
May 02 2019 01:41 PM
SolutionMay 02 2019 02:41 PM
Thanks for the tips.
I found that the problem was how I was using the pnp addItem().
I followed this sample: Add items but for some reason it did'nt worked.
So I found this other code that implement a create method and it did work: Pnp CRUD
I don't know what is the difference exactly but in my eyes they are very similar.
Thanks,
Best regard
Americo
May 02 2019 01:41 PM
Solution