Tip: Getting the normal domain username from the claims username in SharePoint 2013

Introduction to the problem It’s not uncommon when upgrading to SharePoint 2013 from a previous version of SharePoint that you’ll get encoded claims usernames in the places you may have seen normal usernames (DOMAIN) syntaxes before. In my case it was a matter of finding a ton of custom code and have it check whether the username was a claims encoded username or not. This is what we saw: POINTBIRD\tobiaszimmergren There’s a good reason for why the username that is claims encoded look the way it does. The format tells us what type of claim it…

Read More

SharePoint BDC Part 1: Getting Started with the Business Data Catalog

Author: Tobias Zimmergren URL: http:https:https://zimmergren.net//zimmergren.net//www.zimmergren.net | http://www.tozit.com Introduction In this article I will guide you through the very basics of getting started with Business Data Catalog, BDC: Install the AdventureWorks 2008 Sample Databases 1. We will use this database as our example for retrieving data using the BDC. I will step you through the simple process of creating your ADF (Application Definition File) 1. We will use this file as our import connection I will guide you through how we can import this ADF file and create our BDC…

Read More

Recover/fetch the Application Pool password

Author: Tobias Zimmergren URL: http:https:https://zimmergren.net//zimmergren.net//www.zimmergren.net Introduction Alright, so we’ve had a few discussions lately regarding securing your SharePoint environments. Not only did I have a discussion about this when I were conducting SharePoint training last week, but we also covered the aspect which is a base for this article: The Application Pool Password is stored in Clear Text. If you read this article and the code associated, you’ll see how unsafe it can be to run your Application Pool accounts with too much permissions – which leads us in to…

Read More

How to: Upload a file/document using the SharePoint Object Model

Author: Tobias Zimmergren URL: http:https:https://zimmergren.net//zimmergren.net//www.zimmergren.net Introduction I’ve been getting a couple of requests to provide details on how you can upload a file or document using the SharePoint Object Model, instead of using the UI. With this simple article, I’m walking you through the process of uploading any file to your Document Library. Note; Since this is done through the local API, you need to have this code running on the server. That means that it’s ideal to use in for example a FeatureReceiver or EventReceiver. You cannot…

Read More

WSPBuilder - Walkthrough of the Visual Studio Add-in

Alright. People have approached me lately and asked me if I could give them a brief introduction to the WSPBuilder extensions available for Visual Studio. Instead of taking all those discussions on one by one, I’ve decided to document some of the main features here. If I’m missing out on something, please let me know and I’ll fill it up. Bil Simser did a survey with the SharePoint MVP’s and summarized the foremost favorite CodePlex projects in this article. In this article I will cover one of my favorite tools – WSPBuilder. WSPBuilder backgroundA SharePoint Solution Package…

Read More

Starting a SharePoint workflow from code (Event Receiver)

Author: <font color="#3c3c3c" size="1">Tobias Zimmergren</font> (tobias at zimmergren dot net) URL: http://www.zimmergren.net In one of my current projects I was facing the issue of triggering a workflow – but didn’t want the entire workflow to kick off unless absolutely necessary. Instead of the traditional approach where you hook up your workflow to trigger on new items or items being changed, I want to make a check to see if anything really had changed and then check a few other variables before even starting the workflow…

Read More

How To: SharePoint and Silverlight 2.0 – Part 1

Author: [MVP] Tobias Zimmergren Web: http:https:https://zimmergren.net//zimmergren.net//www.zimmergren.net Prephase I have previously written up a few articles on how you can get more from your SharePoint environment by enhancing it with AJAX, .NET 3.5 and Silverlight. References to those articles can be found here: How to: Add support for AJAX in your SharePoint installation How to: Get up and running with the Silverlight Blueprints for SharePoint 2007 How to: Get up and running with .NET 3.5 in your SharePoint environment My intention is to get a SharePoint / Silverlight article series going,…

Read More

How To: Custom Web Part Properties (ToolPart)

I’ve been getting a few requests from people who basically want to know how you can modify the Web Part Properties window – and foremost add your own logic and controls there. Prerequisites SharePoint 101 basic knowledge Knowledge about how you build and deploy Web Parts in SharePoint (Really, you can just download the entire project in the end of this article and skip the pre-reqs.) Intro I will walk you through how you can add your own custom controls in the Web Part property pane, instead of relying on the standard controls. Sometimes you’re just required to have…

Read More

Close You've successfully subscribed to Tobias Zimmergren's thoughts on tech.
Close Great! You've successfully signed up.
Close Welcome back! You've successfully signed in.
Close Success! Your account is fully activated, you now have access to all content.