cancel
Showing results for 
Search instead for 
Did you mean: 
supermankelz
Nintex Newbie

Re: Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution

Tried it out with the Pause for 5 minutes action and still receiving these "Failed to invoke web service." errors:

1/26/2017 3:35 PMWorkflow CommentFailed to invoke web service. Error returned from server: <soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapSmiley Frustratederver</faultcode><faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown. 
1/26/2017 3:35 PMWorkflow CommentFailed to invoke web service. Error returned from server: <soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapSmiley Frustratederver</faultcode><faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown. 
1/26/2017 3:35 PMWorkflow CommentFailed to invoke web service. Error returned from server: <soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soapSmiley Frustratederver</faultcode><faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown. 
1/26/2017 3:35 PMErrorAn error has occurred in PBC Delivery - Project Request Sub-Site Creation Workflow.
0 Kudos
Reply
Nintex Employee
Nintex Employee

Re: Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution

Try to do them one at a time rather than in parallel. I have ours setup sequential actions.

In each action set I am creating the group and then applying the group.

0 Kudos
Reply
Nintex Employee
Nintex Employee

Re: Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution

Have you tested the web service by doing a Run now within the web service action? Does that work?

I ran into some issues around my variables and the way I was pushing through the URL. 

0 Kudos
Reply
supermankelz
Nintex Newbie

Re: Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution

When I try run now, Test Connection returns OK in results, but executing the Web method gets me a 500 Internal Server Error.

Reply
Nintex Employee
Nintex Employee

Re: Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution

Hmmm... so it looks like it is the method that is failing. This is the tedious part, checking that the request is setup properly and that the variables are all in the right format.

First, I would validate all your variables (send them to yourself in an email via the workflow or output them with log history action) and try to see if they are what you expect. After that, you may need to step through the service call to ensure it is setup properly with the variables. I created a test site and created and added the permissions there to see that it would work.

Here is an example of one of my web service calls (usergroup.asmx  AddGroup ):

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/sharepoint/soap/directory/">
<soap:Header>
</soap:Header>
<soap:Body>
  <m:AddGroup>
    <m:groupName>{WorkflowVariable:siteOwnersGroup}</m:groupName>
    <mSmiley SurprisedwnerIdentifier>{WorkflowVariable:newSiteOWNER}</mSmiley SurprisedwnerIdentifier>
    <mSmiley SurprisedwnerType>user</mSmiley SurprisedwnerType>
    <m:defaultUserLoginName>{WorkflowVariable:newSiteOWNER}</m:defaultUserLoginName>
    <m:description>
    </m:description>
  </m:AddGroup>
</soap:Body>
</soap:Envelope>

And then to add the group to the site (permissions.asmx  AddPermission ):

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/sharepoint/soap/directory/">
<soap:Header>
</soap:Header>
<soap:Body>
  <m:AddPermission>
    <mSmiley SurprisedbjectName>{WorkflowVariable:newSiteURL}</mSmiley SurprisedbjectName>
    <mSmiley SurprisedbjectType>Web</mSmiley SurprisedbjectType>
    <mSmiley TongueermissionIdentifier>{WorkflowVariable:siteOwnersGroup}</mSmiley TongueermissionIdentifier>
    <mSmiley TongueermissionType>group</mSmiley TongueermissionType>
    <mSmiley TongueermissionMask>-1</mSmiley TongueermissionMask>
  </m:AddPermission>
</soap:Body>
</soap:Envelope>

Also, I am not sure why I did not mention this before, but I created an asset in   for this awhile back. Check out Site Creation Workflow  if you want to see how I did mine.

Hope this helps!

Reply
supermankelz
Nintex Newbie

Re: Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution

Yea, I think I may need to get my server team involved and see what's going on.  My setup is almost identical as yours.

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/sharepoint/soap/directory/">
<soap:Header>
</soap:Header>
<soap:Body>
  <m:AddGroup>
    <m:groupName>{WorkflowVariable:siteOwnersGroup}</m:groupName>
    <mSmiley SurprisedwnerIdentifier>{WorkflowVariable:newSiteOwner}</mSmiley SurprisedwnerIdentifier>
    <mSmiley SurprisedwnerType>user</mSmiley SurprisedwnerType>
    <m:defaultUserLoginName>{WorkflowVariable:newSiteOwner}</m:defaultUserLoginName>
    <m:description>
    </m:description>
  </m:AddGroup>
</soap:Body>
</soap:Envelope>

Reply
Nintex Employee
Nintex Employee

Re: Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution

Well best of luck! It can be done so you just need to pinpoint the issue. I think you are close!

Let me know if you need anything else or have any questions.

Reply
Automation Master
Automation Master

Re: Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution

‌ did any of the responses resolve your issue?  Are you able to mark any correct?

0 Kudos
Reply
deanvirag
Nintex Newbie

Re: Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution

Hey Jessie. I would love to see how that works. Hope all is well at Nintex. 

 

Dean Virag

0 Kudos
Reply