Sean
  • Member for 9 years, 1 month
  • Last seen more than 2 years ago
  • Florida
Getting Value from PeoplePicker / PeopleEditor
Accepted answer
5 votes

This is what I have been using to get an SPFieldUserValue from the resolved users and groups in a PeopleEditor control. public static SPFieldUserValue GetPeopleFromPickerControl(PeopleEditor people, ...

View answer
Create site collection remotely on-premises
Accepted answer
4 votes

There is an admin web service for 2010 and 2013: http://msdn.microsoft.com/en-us/library/websvcadmin.admin.createsite%28v=office.14%29.aspx http://Site/_vti_adm/Admin.asmx

View answer
Can I create a List within a folder?
Accepted answer
3 votes

No. Lists are stand-alone objects and cannot be nested within each other. You may however create a link to the list within your lists folder. The left-hand column where the list showed up is just a ...

View answer
How to get WebPart on current page by name/ID with javascript?
Accepted answer
3 votes

Once you execute the example you have above, you can (for example) get the title of all web parts on the page by executing this: var i = collWebPart.get_count() for (var j=0;j<i;j++) { var ...

View answer
SharePoint 2010 listdata.svc dates incorrect time zone
2 votes

This has to be a bug in the ListData.svc API. The time on the server should not matter, nor should the regional settings of the SPWeb or the individual user. Why does the API not just return the UTC ...

View answer
Enforce Drag and Drop documents to apply metadata
2 votes

I would like to submit my solution, as it cuts out one of the issues present in all of the other solutions: determining which files were just uploaded. It turns out, that we can hook into a different ...

View answer
How to call Ajax in Visual Web Part
2 votes

The way I have done something similar in the past is to decorate the codebehind method with: [WebMethod] [ScriptMethod(UseHttpGet = false, ResponseFormat = ResponseFormat.Json)] public static string ...

View answer
Create custom list in SPServices
Accepted answer
2 votes

Yes, SPServices wraps the Lists web service: https://spservices.codeplex.com/wikipage?title=Lists Which includes AddList: https://msdn.microsoft.com/en-us/library/lists.lists.addlist.aspx Once the ...

View answer
EventListener for List changes in Sharepoint Hosted app
Accepted answer
1 votes

What you are looking for are called "Remote Event Receivers" and they are only available in Provider Hosted Add-Ins (https://msdn.microsoft.com/en-us/library/office/jj220043.aspx.) Given that SP ...

View answer
use CSOM for the GetListAndView WebService for multiple lists/views
Accepted answer
1 votes

I believe you can use SP.ExceptionHandlingScope as a 'batch try/catch' which will not cause your entire operation to fail if just one call fails on the server after you send it off. Something like ...

View answer
Adding Approvers in a Sequential Workflow Visual Studio
1 votes

One issue I'm seeing here is that the 'Assigned To' field on workflow tasks only accepts one SPUser or one SPGroup, but not multiples (at least not by default). If you need multiple approvers for a ...

View answer
Sort SharePoint sub-sites with columns?
Accepted answer
1 votes

I do not believe what you are trying to do is possible, as this is an OOTB layouts page, rather than a list. However, it would be fairly simple to create a 'Project Sub-Sites' list within your top-...

View answer
SPWorkflowTask.AlterTask causing onTaskChanged to fire from a different SPWorkflow Instance
1 votes

This is the workaround I've implemented. I would love more information for the root cause of this, but I just need to get it working and don't have time for SharePoint quirks... private bool ...

View answer
SharePoint 2013 : Event Receivers issue
0 votes

My suggestion would be to move all of your logic into your -ing synchronous before receivers. All updates to fields go into properties.AfterProperties and reference by InternalName of the SPField. Are ...

View answer
Parsing a CAML query in C#
0 votes

You could use the XmlReader class: https://msdn.microsoft.com/en-us/library/system.xml.xmlreader%28v=vs.95%29.aspx or the XmlDocument class (my preference): https://msdn.microsoft.com/en-us/library/...

View answer
When moving a document to another folder within same document library the workflow is not triggered
Accepted answer
0 votes

I believe "move" is a distinct event separate from "add" or "update." Take a look at the "item file moved"event receiver. You should be able to just use event receivers (add/update/move) instead of ...

View answer
special permission to task in sequential workflow
Accepted answer
0 votes

This is an issue I have fought with time and time again. The SpecialPermissions property of the CreateTask activity does not seem to update permissions on an already existing task. In theory, you ...

View answer
Return value of the dropdown list rather than text when creating an item
0 votes

I think you are looking for this: https://stackoverflow.com/questions/14165315/how-to-get-the-selected-text-instead-of-value-in-dropdown-menu Reposting that answer here: If you have something like ...

View answer