Hello, How does the process of adding multiple list items work in sppp with sharepoint 2013? I get a batch error when adding multiple items using the official documentation
Andrew Koltyakov
@koltyakov
SPPP is not related to the API. It's a project generator/starter and a set of project automation tasks. Regarding the API question, batch API was not supported in SP 2013. The way to go is Promise.all instead.
eralardz
@eralardz
Hello everyone. I'm trying the following example: https://www.linkedin.com/pulse/getting-started-react-local-development-sharepoint-andrew-koltyakov/. It works fine with user credentials (SAML/ADFS). However, I'd like to use OnDemand authentication because we work in a multi-user environment with 2FA. When I try it out, Electron opens up fine, and I can log in with 2FA, but it just loads the SharePoint page. When I close the popup window I am not authenticated. Can you guys help me?
When I close the Electron window I get this error ^
Sergei Sergeev
@s-KaiNet
Hi, could you tell which version of electron do you use?
eralardz
@eralardz
Hello Sergei, thanks for your time. I used the last version of electron through npm: 7.1.3
Ok, thanks a lot! I will bug my admin to enable it
Sergei Sergeev
@s-KaiNet
if it's windows auth, a browser should ask for creds using above window
eralardz
@eralardz
Oh no, it doesn't use that window. It uses a SharePoint popup.
_
Sergei Sergeev
@s-KaiNet
could you send a screenshot (delete all private data)?
eralardz
@eralardz
ok, just a moment
etc...
Sergei Sergeev
@s-KaiNet
it definitely doesn't look like windows auth
eralardz
@eralardz
after the password it asks for the 2fa sms code, and then I would expect the Electron window to close. But it stays open and it just loads the website.
Sergei Sergeev
@s-KaiNet
you can try asking admins to enable app password, meanwhile I will test on-demand with the latest electron and 2fa, but I will be able to do that only by the end of the week
eralardz
@eralardz
Thanks a lot! I will try to downgrade versions first. Do I create an issue on github for this?
the last suggestion - try to install electron 3.x globally, then use on-demand without "electron" option
eralardz
@eralardz
Ok. I will check. I am using sp-rest-proxy btw, but I guess that just uses node-sp-auth under the hood.
Sergei Sergeev
@s-KaiNet
yep, exactly
eralardz
@eralardz
How do i use on-demand without electron? Do i specify it manually?
Sergei Sergeev
@s-KaiNet
ah, I forgot you use sp-rest-proxy, then you can't control these settings
then just install electron 3.x globally and re-initilize sp-rest-proxy with on-demand option
eralardz
@eralardz
I installed it globally, and the warning "Integrated windows authentication isn't supported" is gone, but it still just loads the website
Sergei Sergeev
@s-KaiNet
ok, so it looks like it's an issue with electron and 2fa, I will check it
eralardz
@eralardz
Thanks a lot!!
Just one more question, I would try to make a really simple react webapp that reads and writes to SharePoint lists from node. I could't find any good examples tho, would you happen to know some?
Sergei Sergeev
@s-KaiNet
if you don't need user context, then you can use add-in only authntication from nodejs and update SharePoint