-
Popular posts
-
Tags
Add-In Administration BDC CAML Certificate Configuration Content Types CSOM Database Delegation Deployment ECB Events External Content Types FBA Fields Impersonation InfoPath installation JavaScript jQuery Logging Metadata Properties Packaging Performance PowerShell Provider-Hosted QuickTime REST Search security Self-Signed Certificate services SharePoint SharePoint Designer SharePoint Short SP2019 SQL Taxonomy Timers Visual Studio WCF WebPart Workflow Workflow Activity
-
Categories
- .Net (2)
- Deployment (1)
- Development (1)
- General (11)
- InfoPath (7)
- JavaScript (3)
- Office (1)
- Power Apps (1)
- Canvas Apps (1)
- SharePoint (111)
- Configuration (15)
- CSOM (2)
- Designer (3)
- Installation (5)
- Security (2)
- Taxonomy (4)
- Workflow (9)
- Shorts (23)
- SQL (3)
- Unit Tests (1)
- Visual Studio (4)
Author Archives: Stu
Set Title Field on Document Upload
When uploading a file to a SharePoint library through code, you sometimes want to set item properties at the same time the document is created. To achieve this you simply populate a Hashtable object and pass this into the Add … Continue reading
Run With Elevated Privilges
SharePoint Short #20 Instead of explicitly wrapping code in a RunWithElevatedPrivileges block, it’s better to first check if the user has sufficient privileges and only elevate when they don’t. Instead of: SPSecurity.RunWithElevatedPrivileges(() => { // elevated code… });SPSecurity.RunWithElevatedPrivileges(() => { … Continue reading
Cannot invoke HTTP DAV request
When using the Client-Side Object Model (CSOM) for SharePoint and you’re trying to create\overwrite a file using binary data, you’d naturally try and use the SaveBinaryDirect method of the File class: public void SaveFile(Microsoft.SharePoint.Client.ClientContext context, Microsoft.SharePoint.Client.File file, string relativeItemUrl, byte[] … Continue reading
Creating Entities from Dynamic SQL
When working with a LINQ to SQL model (dbml) and you try to add a custom stored procedure that uses dynamic SQL, you will likely see an error similar to the following: The return type for the following stored procedure … Continue reading
Get SearchServiceApplication in PowerShell
In C# when retrieving the default SearchServiceApplication object you might do something like the following, if you were trying to initiate a new Schema object, for example: SPServiceContext serviceContext = SPServiceContext.GetContext(SPContext.Current.Site); SearchServiceApplicationProxy searchApplicationProxy = serviceContext.GetDefaultProxy(typeof(SearchServiceApplicationProxy)) as SearchServiceApplicationProxy; Guid … Continue reading