Article archive
Create scheduled job
30/05/2014 17:07
#Create task with name MyTaskName to repeat every day at 4:00a.m to run MyCode.exe, start date today(defaulschtasks /create /sc daily /tn "MyTaskName" /tr "C:\EXE\test\MyCode.exe" /st 04:00 more info on https://technet.microsoft.com/en-us/library/cc725744.aspx#BKMK_days
Not able to open Sharepoint project in Visual Studio 2012
05/05/2014 17:21
- make sure Microsoft Office Web Developer Tools are installed (go to programs, select Visual Studio 2012, click change and check if checkbox is checked)- Microsoft Exchange Web ServiceRun from cmd line following command (go to file location)EwsManagedApi32.msi...
Select distinct items from List
30/04/2014 14:53
MyObject has Id propertyList<MyObject> financials = financials.GroupBy(m => m.Id).Select(g => g.First()).ToList();
Copy dll to GAC from Visual Studio
24/04/2014 15:32
- Create Class library project in Visual Studio- Write your classesIn project properties add post build command to copy it to GAC"c:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\x64\gacutil.exe" /i "C:\yourdllpath\bin\Debug\yourdllname.dll"or more generic"c:\Program Files...
Call Nintex web service by Powershell
16/04/2014 16:01
#Call Nintex Worfklow web service method, to get tasks assigned to specific user$siteUrl = https://yoursitecollection$url = $siteUrl + "/_vti_bin/nintexworkflow/workflow.asmx"$userLogin = "domain\yourusername"$listName = "Your list name"$ws = New-WebServiceProxy -Uri $url...
Add Login as different user link to navigation
11/04/2014 13:25
Login as different user personal menu item is missing in SP 2013. One of workarounds is to add link to navigation. Url of this link is https://yoursitecollection/_layouts/closeConnection.aspx?loginasanotheruser=trueHere is the script to do so (but of course, you can do it manually)$webUrl =...
Select properties from list items
02/04/2014 11:58
///get id and task display name from SPListItemCollection public static Dictionary<int, string> LoadTasksForSelectedUser2(SPWeb web, string userName) { Dictionary<int,...
Add node to QuickLaunch
24/03/2014 11:35
static void Main(string[] args) { using (SPSite site = new SPSite("https://yoursitecollection")) ...
Read Csv with spaces
20/03/2014 14:04
When we Export list from Sharepoint, get owssrv file and save it as excel file, we can use it as import source for powershell in csv format.But if some items starts with space, this space is ignored when reading csv file. If we want to find an item by this value, we have to change little csv file...
Create Content Editor web part programmaticaly
12/03/2014 15:37
ContentEditorWebPart webpart = new ContentEditorWebPart(); webpart.Title = "Your title"; XmlDocument xmlDoc = new...
Items: 121 - 130 of 384