Tuesday, September 8, 2015

How to call SharePoint REST Web Services from SharePoint Designer 2013 and Fiddler?

What?

SharePoint 2013 introduced a new action in SharePoint Designer 2013 workflows to call a http web service called "Call HTTP Web Service".

There are thousand other blog posts explaining how to use that action but in this post I am going to focus on and detail how to use GET and POST http methods with REST based native SharePoint 2013 web services.

Why?

SharePoint 2013 (and previous versions) uses a client side “token” to validate posts back to SharePoint to prevent attacks where the user might be tricked into posting data back to the server. This token is known by many names; form digest ormessage digest or request digest. The token is unique to a user and a site and is only valid for a (configurable) limited time.

Calling a SharePoint 2013 REST POST http method therefore requires adding the Request Digest token to the request header of the request as the “X-RequestDigest” header.

How?

The first step to test out the queries is to use CAML Designer 2013 and Fiddler.

Thursday, September 25, 2014

Inconvenient Document Template Access Issues and Send To connections in SharePoint

What?

You have a SharePoint site (Site A) that has got a content type with a document template attached to it.
You have created a few documents using the document template and them moved them into a different site (Site B).

A user who has access to the document in the new location (Site B) but does not have access to Site A tries to access it and gets prompted to authenticate against Site A.

Eventually being a not so technical end user, he gets his accounts locked after trying his credentials repeatedly.

How to reuse / associate list workflows built using SharePoint Designer 2013 on multiple lists

What?

How to reuse / associate list workflows built using SharePoint Designer 2013 on different lists

Why?

You want to built a reusable list workflow using SharePoint Designer 2013 and be able to attach them to multiple lists.

Tuesday, August 5, 2014

You receive an error "The {Send To Connection} site could not be found or accessed." when you try to send a document using "Send To" in SharePoint 2013

What?

You receive an error "The {Send To Connection} site could not be found or accessed." when you try to send a document using "Send To" connections in SharePoint 2013.

Why?

I have tried to copy documents from one site collection (Site A) to another (Site B) using Send To connections in SharePoint 2013. Documents sent from Site A to Site B were sent successfully whereas documents that are sent from Site B to Site A failed with the exception: "The {Send To Connection} site could not be found or accessed."

Tuesday, March 18, 2014

How to fix SharePoint 2013 Designer list workflows on pages libraries that automatically get cancelled with HTTP 500 exception

What?

List workflows that are built using SharePoint 2013 Designer on pages libraries in SharePoint 2013 get cancelled automatically with internal status "Cancelled" as shown below:


Monday, December 9, 2013

Migrate browser based InfoPath Forms with code behind from MOSS 2007 to SharePoint 2013

What?

How to successfully migrate browser based InfoPath Forms with code behind from MOSS 2007 to SharePoint 2013?

In this post I will try to explain some of the obstacles that you might be hit with and the ways to get around them.

Please use this is a general guide to understand the overall migration process.

Monday, December 2, 2013

InfoPath assembly Microsoft.Office.InfoPath.Server.dll missing in SharePoint 2013?

What?

I am working on migrating an InfoPath Form Solution with code-behind from MOSS 2007 to SharePoint 2013.

After the old solution was upgraded to Visual Studio 2012 on a SharePoint 2013 server, Visual Studio complained that the assembly Microsoft.Office.InfoPath.Server.dll could not be found.

Where?

Not in GAC
Not in 15\Bin
Not in 15\ISAPI

It is found in C:\Program Files\Microsoft Office Servers\15.0\Bin