Skip to main content
Nintex Community Menu Bar

InternalServerError when creating modern site with /_api/SPSiteManager/create

  • September 28, 2021
  • 1 reply
  • 25 views
  • Translate

Forum|alt.badge.img+6

Within a "Call HTTP Web Service Action", I try to create a team site which is not connected to a group.

The official documentation (Erstellen von modernen SharePoint-Websites mithilfe von REST | Microsoft Docs) that misses a lot, is not a good helper here.

What I did:

Adding the request headers to a dictonary:

19894i39085235DC186F70.png

 

Assign the api url to a variable:

19895i55C9B6308AE568C6.png

 

Assign the full url to a variable:

19896i19F2B3B7F818A435.png

(I also tried with the root url instead of current site url)

 

Assigning the request to a dictionary:

19897i62D356405DF37B87.png

19901i456F0D2890278597.png

 

19899iF6DCFF069579F3DE.png My list item field "Serverrelative URL" contains for example "/sales"

And then the action to call the api:

19900i8A58B4B8E03BCAC6.png

 

The response status code is 0 and the message which will be added to the Workflow-History is InternalServerError. The Response Content is empty.

 

What am I missing?

 

 

Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+6
  • Author
  • 25 replies
  • January 11, 2022

What I did so far:

 

changed the request headers to:

odata-version: 4.0 Accept: application/json;odata.metadata=none X-RequestDigest: digestToken

I determined the request digest by calling the contextInfo in a previous HTTP Web Service Call and assigned it to a variable which I used here.

From the response of the /api/contextInfo I get 200 OK and got a valid token.

 

I changed the WebTemplateExtensionId to our custom SiteDesignId and assigned 00000000-0000-0000-0000-000000000000 to SiteDesignId as described in the documentation.

 

Now my request to create a site seems to be OK but I get 403 Forbidden now.

The Workflow runs under the context of the user (without elevated permissions).

During the execution of this peace, I am logged in with a SharePoint-Administrator role and Global Admin role (Azure AD).

 

What else could causing "Forbidden"?

 

then

 

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings