Hello
Can I create a web service that make administration operation like create new user, create site collection, programmatically on SharePoint 2013 Online.
In more detail :Â
i created an application that simulate some sharePoint action like create groups create site colection create library affect credential … using webparts (drang and dropd , js…) to make the task easy for user.
this application is used like dropBox by organization (they create an account , a site collection is created , they create library ….)
the solution was a farmSolution , now we need to deploy it on SP online , and because i can’t do this code using client object model or sandbox solution (due to the limitation) i was thinking that i can create a web service that will excute object model code and then i consum it by client object model web part on SP Online
so the question can i create this web service , because i think that the web service need to be on the same server as Sp , and im using Sp online?
Sorry to re-open an older thread, but I have the same problem.
Currently I’m using SPServices to make contact to the SharePoint online webservices.
This is my code:
<script type=”text/javascript”>
function CreateGroups()
{
$().SPServices({
operation: “AddGroup”,
groupName:”TestGroup”,
ownerIdentifier:”company.support@domainname.onmicrosoft.com”,
ownerType:”user”,
defaultUserloginName:”company.support@domainname.onmicrosoft.com”,
description:”Test description”,
async: false,
completefunc: function (xData, Status){
alert(Status);
}
});
}</script>
Obviously, this doesn’t work… 🙂
This is the error that I get from the webservice:
The parameter loginName cannot be empty or bigger than 251 characters
Anyone can point me in the right direction? I’m have no idea what I should change :/
Thanks!