sharepoint wcf service : http://www.robertseso.com/2013/05/adding-custom-wcf-services-to.html tocreate a service . http://nikpatel.net/2012/02/29/step-by-step-building-custom-wcf-services-hosted-in-sharepoint-part-i/ watch on viemo: https://vimeo.com/72284775
Posts
Showing posts from April, 2015
- 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...