Restrict users to access only workflow task created form them in sharepoint solution : http://community.spiceworks.com/how_to/66248-restrict-a-sharepoint-task-to-its-assigned-user-group
Posts
Showing posts from 2015
- Get link
- X
- Other Apps
ADD KEY Process Indicators (KPI) to SharePoint list : steps to make indicator coloum : add a new calculated column to you list : add the three indicators icons to site asserts document library and use them from there. add the formula as below : =IF([complete %]<10,"<img src='http://yoursiteurl/sites/name/SiteAssets/indicator_button.png' alt='red' height='22' width='22'>", IF(AND([complete %]>9,[complete %]<50),"<img src='http://yoursiteurl/sites/name/SiteAssets/yellow.jpg' alt='yellow' height='22' width='22'>", IF([complete %]>50,"<img src='http://yoursiteurl/sites/name/SiteAssets/green.jpg' alt='green' height='22' width='22'>",))) ADD more if conditions basing on you requirement. my assumption for conditions red<10 10>yellow<50 green>50
- Get link
- X
- Other Apps
shraepoint 2013 wcf service : endpoint not found service.svc file <%@ ServiceHost Language="C#" Service=" VS2012WcfService.ISAPI.MyService.MyService, $SharePoint.Project.AssemblyFullName$" CodeBehind="MyService.svc.cs" Factory="Microsoft.SharePoint.Client.Services.MultipleBaseAddressBasicHttpBindingServiceHostFactory, Microsoft.SharePoint.Client.ServerRuntime, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> SOAP = MultipleBaseAddressBasicHttpBindingServiceHostFactory REST = MultipleBaseAddressWebServiceHostFactory Data Service = MultipleBaseAddressDataServiceHostFactory https://msdn.microsoft.com/en-us/library/office/ff521581(v=office.14).aspx
- Get link
- X
- Other Apps
Export to excel Using OPENXML C# ,asp.net, mvc : public void exporttoexcelfromDataset(DataSet dataSet){ try{ // Create a spreadsheet document by supplying the filepath. // By default, AutoSave = true, Editable = true, and Type = xlsx. MemoryStream ms = new MemoryStream(); HttpContext.Current.Response.ClearHeaders(); HttpContext.Current.Response.ClearContent(); HttpContext.Current.Response.Clear(); ...
- Get link
- X
- Other Apps
Create a claims base sharepoint sitecollection NOTE: We are assuming application pool already exists $ap = New -SPAuthenticationProvider -UseWindowsIntegratedAuthentication -DisableKerberos New -SPWebApplication -Name "Contoso Portal" -ApplicationPool "Default SharePoint Web Apps" -HostHeader portal.contoso.com -Port 80 -Url http://portal.contoso.com -AuthenticationMethod NTLM -AuthenticationProvider $ap -DatabaseName "WSS_Content_Portal"
- Get link
- X
- Other Apps
Add event Reciver to sharepoint 2013 List : vs2013 ==> new project ==> sharepoint 2013 empty project ==> select farm level deployment ==> right click project file and add new item ==>select event listener ==>select list type as custom list or any approiate one you are working with and say ok now you will see bunch of files and among these emelant.xml is where you configure to which list this eventhandler have to be pointing to so . look at top part of element.xml and you should see <Receivers listtemplateid="100"> replace this with <Receivers ListUrl="Lists/Yourlistname"> thats it now run your applicationa and when you run it you can go and look at manage site features and you should see this feature in the list as activated . so ad a new item and add break point to check if the evnt is captured or not .
- Get link
- X
- Other Apps
Powershell to get number of followers for a pericular user : Add-PsSnapin microsoft* $site = Get-SPSite http://yoursiteurl/ $servContext = Get-SPServiceContext ( $site ) $profileMgr = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager ( $servContext ) $userpro = $profileMgr . GetUserProfile( "Domain\username" ) $followMgr = New-Object Microsoft.Office.Server.Social.SPSocialFollowingManager ( $userpro , $servContext ) $followers = $followMgr . GetFollowers() $followerd = $followMgr . GetFollowed( "Users" ) $followerdSites = $followMgr . GetFollowed( "Sites" ) c# code : for any perticular user public List<int> GetFollowersAndFollowedByName(string name) { List<int> fAndf = new List<int>(); ...
- Get link
- X
- Other Apps
Upload from excel sheet to sharepoint List : Method 1 Excel Interop dlls: using Microsoft.Office.Interop.Excel; #region excel interop import to sharepoint from excel with excel interop dll. try { MyApp = new Excel.Application(); MyApp.Visible = false; MyBook = MyApp.Workbooks.Open(path); MySheet = (Excel.Worksheet)MyBook.Sheets[1]; var lastRow = MySheet.Cells.SpecialCells(Excel.XlCellType.xlCellTypeLa...