Showing posts from September, 2013

Nintex Workflow 2010 - Multiple Dynamic E-Mail Attachments

We have a Nintex Workflow and I need to send a list of documents in a folder to a customer as email attachment. Sound easy !!

Although this could be an easy tasks unfortunately I couldn't find an easy way to do this, because the "Attachment" input element only takes a full path to a single file.

That means you can't loop through a folder and collect all files with a seperator in a variable and give it to the attachment control. Or better would be to collect all paths in the "Collection" variable and give this variable to the attachment control. This also does not work in my Nintex version. Maybe the Nintex guys already added this feature.

The only way I found is to save each file in a separate variable. So I had to make a restrictions like, "I've maximum 5 attachments".

So in my Workflow I've 3 variables (you can have more):

fileAttachPath: Contains the path to the folder like http://sharepoint/sites/projectX/docsfileAttach1: is initialize…

Ways to redirect http requests in SharePoint

The are multiple szenarios when you need a redirect in SharePoint:

You've migrated SharePoint into a new URL (e.g http://sp2010 to http://sp2013)You moved a site collectionYou moved a sub site into a new site collection
If you want to redirect in SharePoint without custom solutions you have the following options:

Redirect with XML Viewer or Content Editor WebPart
You can redirect with JavaScript by inserting a WebPart into the site and adding simple JavaScript. This is easy to configure but redirects only the site in which the WebPart sits (Probably the Mainsite). If users have saved links the their document libraries this method fails, unless you put the same WebPart into the document library.
So go to the site you want to redirect and the XML Viewer WebPart. Open the WebPart settings and add the following line of code:
<script type="text/javascript"> location.href = "<<the url you want to redirect>>"; </script>

One drawback of this way to…

Move a SharePoint Team Wiki Library between SharePoint Sites or Site Collections

In this post I describe how you can move a team wiki from one site to another. The difficulties here are:

The "Save as Template" option in the list settings does not exist. This is because this type of list is deprecated. In SharePoint 2010 you should use Enterprise Wikis.After copying the list, the links in the wikis site must be adapted to the new site.
Ways to copy the Wiki Library The are three "easy" ways to copy the Wiki Library from one site to the other. The "Save As Template" Link does not exist in the Library Settings but the option still exists.
SharePoint Designer Open the site with the SharePoint Designer. Click on your wiki and go the the library settings. You'll find a "Save as template" button there.

SharePoint UI You can use the standard "Save As Template" UI by modifying the URL
Go to the Wiki Library. Normally you browse the first wiki site, but go to the wiki library page by typing  /wikilibname/Forms/AllPages.a…

How to create a FAQ in SharePoint with OOB features

There are lots of stuff in the web around how to create a FAQ in SharePoint.

In this post I'll show you some tricks what you can do with additional OOB SharePoint tools to have also some search and some style within your FAQ to impress your customer. It also shows you the power of SharePoint as a developer platform.
The requirements for our FAQ are: Easy to maintainEasy to search contentAdd documents as links in FAQGrouped FAQ contentExport FAQ when needed into a report
To understand this post you should have some basic know-how about:
SharePoint ListsSharePoint List ViewsHTML, CSSJavaScript (SharePoint Client API)SharePoint WebPartsCAML or you just follow the instructions.

The following image shows us the final page.

Our FAQ page has a FAQ list and a document library. This is useful if you want to link on some documents in your FAQ. The page has a list WebPart with a special grouped view and also2 quick searches for documents and for the FAQ list.

I also use a category for my FAQ…

SharePoint Installation Claims Error: Failed to create instance of cookie value handler type / handler object

I got this error while installing SharePoint 2013 with AutoSPInstaller.

STS Call Claims Windows: Failed to get cookie value handler type / object
Opening the logs I saw following error messages:

This error was also caused when I tried to use Get-SPSite -Limit All

As the error says that it is a claims problem I first checked the SharePoint Security Token Service but the web service was fine. When I browse the web service, the page is rendered without errors:

Check if Windows Web Services Pool has startedCheck if "Claims To Windows Token Service" has startedCheck if IIS checkbox "enable for 32bit Applications" is checkedProvisioning the Security Service againCheck if the "Claims To Windows Token Service" is running under Localsystem accountCheck if in IIS > Windows Authentication "Enable Kernel Mode Authetication" is enabledAnd Reinstalling SharePoint I got still the same error.

Then I decided to debug the code and searched after the er…