0

Is there a way to get the Form Digest value without using a SOAP call?

Because accessing CSOM SharePoint web services require digest value, and because the form digest request requires SOAP, we are forced to give SOAP and REST web service access to our user instead of just REST access.

Is there some way to get form digest without using SOAP?

5
  • This is already answered here. Commented Dec 15, 2021 at 20:20
  • Which version of SharePoint are you using? Are you adding your solution to SP page? If yes, you can get the form digest value from the page without any API call. Commented Dec 16, 2021 at 4:36
  • Confirmed @DylanCristy was correct. Closing. Commented Dec 16, 2021 at 4:39
  • I made the request but I cannot seem to use the digest value. [[\r{\r\"SchemaVersion\":\"15.0.0.0\",\"LibraryVersion\":\"15.0.5357.1000\",\"ErrorInfo\":{\r\"ErrorMessage\":\"The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.\",\"ErrorValue\":null,\"TraceCorrelationId\":\"4a3e0da0-00f4-c012-5d16-3844abf4f22e\",\"ErrorCode\":-2130575251,\"ErrorTypeName\":\"System.Runtime.InteropServices.COMException\"\r},\"TraceCorrelationId\":\"4a3e0da0-00f4-c012-5d16-3844abf4f22e\"\r}\r]] Commented Dec 16, 2021 at 5:51
  • Ah I was missing other required headers that the other ticket had omitted. Commented Dec 16, 2021 at 16:37

0

Browse other questions tagged or ask your own question.