Article archive

Microsoft.Office.Workflow.Pages.dll location

19/10/2015 17:21
You can find it in C:\inetpub\wwwroot\wss\VirtualDirectories\yourWebApp\_app_bin\Microsoft.Office.Workflow.Pages.dllc:\inetpub\VirtualDirec

Set partially bold text

19/10/2015 10:50
There is no way how to set default text value formatted in InfoPath, but we can do it in a code. In following example I have one field of RichText type Here is a code, how to insert partially bold text    using Microsoft.Office.InfoPath; using System; using System.Xml; using...

Get current web url in Nintex Workflow

16/10/2015 12:27
Sometimes we need to build different strings based on current web url. One of the way how to get it is by using Regular Expression action - we replace part of item url (in example there is an item in Document library) with empty string and store it in variable currentWebUrl.In case of worflow on...

Send email from Console Application

16/10/2015 11:49
using System;using System.Collections.Generic;using System.Linq;using System.Net.Mail;using System.Text;using System.Threading.Tasks;namespace SendMailConApp{    class Program    {        static void Main(string[]...

Deploy Nintex Workflow from wsp

16/10/2015 10:59
Nintex workflows are great product to cooperate with SharePoint, but it's designed to move it between environments by export/import manually.Fortunately it's a way how to include Nintex workflows in Sharepoint solution package, so that they are deployed together with solution and working...

Set Sharepoint Timer job description

06/10/2015 13:56
Usually we want to set not only custom timer job title, but also description. When to try to set it, you will find out it is read only property. Solution is to override this read only property as followingpublic class MyCustomJobDefinition : SPJobDefinition{    public override string...

Install DLL to GAC

06/10/2015 10:06
Powershell script to install dll into GAC, instead of using gacutil.exe $dllLocation = "G:\mytfsproject\Debug\MyProject.dll";   Set-location (Split-Path $dllLocation -Parent) [System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral,...

Query boolean field

06/10/2015 10:02
Use      <Where>     <Eq>       <FieldRef Name='yourBooleanFieldName' />       <Value Type='Integer'>1</Value>     </Eq>  ...

Deploy file to Sharepoint using Module

21/07/2015 16:11
This code deploys FileName.xsl to Style library/MySubfolder folderAdd New item/Module in Visual studioGive it the name, rename sample.txt to FileName.xslUpdate Elements.xml file according to code below<?xml version="1.0" encoding="utf-8"?><Elements...

Change display form fields order programmatically

20/07/2015 17:49
If we want to change fields order in new form, edit form and display form without editing aspx in Sharepoint designer, we can change it in content type through UI or programmatically. In following example, we change order of Event content typeAdd-PSSnapin microsoft.sharepoint.powershell -ea...
Items: 61 - 70 of 384
<< 5 | 6 | 7 | 8 | 9 >>