Home > SharePoint2013Preview, Workflow > How to use call web service action in SharePoint2013 workflow

How to use call web service action in SharePoint2013 workflow

In SharePoint2013, you can use call web service action and loop. In this post, I will show you how to achieve this.

1. Create a List workflow called CallWebService


2. Create a variable called listurl and assign the value to http://sp2010/_vti_bin/listdata.svc


3. Create a dictionary variable called RequestHeaders and add the following key value pairs.


4. Call the web service with the HttpHeaders you just build in the previous step and store the response in the variable ResponseContent.


5. The ResponseContent variable is the Dynamic values (in SharePoint designer it will be called dictionary type) and it is new feature for SharePoint2013 workflow. We can use the following actions to count the number items in the variable.


6. You can use loop in SharePoint 2013 workflow and out each list title as shown below.

Advertisements
  1. Joan Portell
    January 21, 2013 at 7:19 am

    I repeat your exemple and all times have same responser: Unauthorized.

    What are the pre-requisites to execute this workflow ? It’s necessary especial authorization for execute webservices in Sharepoint Designer 2013 workflow ?

    Thanks

  2. Joan Portell
    January 23, 2013 at 6:52 pm

    It’s possible have a map of json format for sharepoint web services output ?

    Thks.

  3. March 21, 2013 at 10:50 pm

    Joan Portell :
    I repeat your exemple and all times have same responser: Unauthorized.
    What are the pre-requisites to execute this workflow ? It’s necessary especial authorization for execute webservices in Sharepoint Designer 2013 workflow ?
    Thanks

    The same problem

  4. Preetee
    October 16, 2013 at 11:40 pm

    Has anyone been able to resolve the permission issue? I am encountering the same problem!

  1. October 1, 2012 at 7:48 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: