To update the Created Field for SharePoint list item you can start the script like this. The most important here is the 'fullcontrol' permissions and '-UpdateType UpdateOverwriteVersion' parameter in the request.
(read more...)To update the Created Field for SharePoint list item you can start the script like this. The most important here is the 'fullcontrol' permissions and '-UpdateType UpdateOverwriteVersion' parameter in the request.
(read more...)The method to expand all the events in Calendar View on load using Content Editor WebPart. You should add this code. You should copy and paste it to html file, save this file to document library and set its path into the settings of CEWP.
(read more...)This post is about SharePoint web services. In SharePoint 2010 you can use only SOAP requests to get or to send data from or to SharePoint web sites. A bit below in this post you can see the list of WSDL URL addresses.
If you want to customize a NewForm for SharePoint list so, that users can add attachements in the same interface as other form fields, you should place control for adding attachments to a form. The problem is that this is not described and you really have to rewrite already half-prepared control.
Snippet to render Attachments Row in SharePoint 2010 Custom Edit Form
CsvHelper is a very good library for reading and writing CSV files. It’s really easy for coding and fast for work. You can install it via Nuget in Visual studio or download from the project page in GitHub https://github.com/JoshClose/CsvHelper. (read more...)
There is a rather pretty solution how to get all the items from one generic collection (List<T>) which are not presented in the second one.
While removing Site Content Type you got the error that "The content type "My Content Type" is part of an application feature". The fix is rather easy and simple.
For a massive update of a SharePoint list items I didn't want users, who subscribed for alerts about changes in the SharePoint list, got the messages about it. There were 2 ways to do it: 1 - temporary to disable SMTP server (change SMTP settings to wrong ones) and delete files from Queue folder after; 2 – temporary to disable alerts for a list. This story is about the second way.
There’re no associative arrays (hash) in common sense. There are Dictionaries for this. It’s a very good tool if you want to use link "key-value". Using Dictionaries, keys and values can be different types. (read more...)