This example will show you how to get news from RSS feeds, publish them on the SharePoint website and how to run automatically workflows according to the schedule.
We will create a workflow that retrieves news from RSS feeds and publishes them in one of the lists on the website. Such a workflow cannot be created using only SharePoint own conditions and actions; therefore we will use several components from HarePoint Workflow Extension. Here is the list of used components:
| Component name and type |
Set of Workflow components |
| SharePoint Workflow |
HarePoint Workflow Extensions |
| Create List Item (Action) |
|
 |
| Fetch RSS Item (Action) |
|
 |
| If any value equals value (Condition) |
 |
|
First, we will create a list of “Announcements” type (hereinafter referred to as the “List”), which our workflow works with, and we will put it on one of the site’s webpages. Then we will create a workflow acting in the following manner:
- Retrieving a URL of the RSS feed out of the workflow parameters.
- Retrieving the first item with the title and the text of the news from the feed.
- Checking if the list contains such an item. This step is needed to avoid duplicates.
- If there is no item with such a title, then a new item is added.
- Repeat actions 2 to 4 for the second and third items of the feed.
Before Starting to Create a Workflow:
1.Create a list and put it on one of the pages of the website. To do that, open the website, click “Site Actions” on the page needed and select “Edit Page”.

Click to open real size screenshot
Put the text cursor into the place needed on the page, select “Insert” tab and click “New List” button.

Click to open real size screenshot
Enter the name of the new list (for example, “News”), select “Announcements” type. Save the new list, and save the webpage.
2.Edit the list view.
To edit the list view, open the web part editing (“Edit Web Part”).
Click to open real size screenshot
In the emerged options window you can select and set up the list view. Select “Summary view”.
Click to open real size screenshot
Starting to Create a Workflow:
1.Create a new workflow of “Site Workflow” type in SharePoint Designer.
2.Create an initiation form parameter.
To do that, click “Initiation Form Parameters”, “Add”. Name the variable. As the RSS URL is a string, select this data type for the variable (“Single line of text”). Click “Next”, enter the default URL of the RSS feed (for example, http://www.zdnet.com/blog/microsoft/rss), click “Finish”.
Click to open real size screenshot
3.Retrieve items of the RSS feed.
Add “Fetch RSS Item” action in the workflow. Specify the parameter created in the first step as “this url” parameter. Specify item number “1” in the action’s options.
4.Check if there is an item with an identical title.
Add the “If any value equals value” condition. Edit the first value. In the “Field Data to Retrieve” block select the list and the “Title” field. In the “Find the List Item” block select the “Title” field and the variable in which the “Fetch RSS Item” action saved the title in the first step.
Change “equals” condition to “is empty” condition. This condition will work if the list does not contain any item with a title identical to the title of the retrieved RSS feed item.
5.Create an item.
If there is no item with a similar title, create such an item. To do that, add the “Create List Item” action within the condition. Open editing of “this list” parameter.
Select the list you work with. Select the variable, which was used by “Fetch RSS Item” action to save the title in the first step, for the “Title” field. Add “Body” field. You can use value of the variable with description of the feed item as the value of this field. You can also use formatted text and several variables as the value. To do that, open “String Builder”. “Add or Change Lookup” button adds variables to the text. Save all the parameters (“OK” buttons).
In order to retrieve the second and third feed items (or more items if needed) add the next workflow step, in which you need to repeat actions one to four. Do not forget to change the number of the received RSS feed item.
The ready workflow looks as follows:
Click to open real size screenshot
Save and publish the workflow. After that it will become available on the website on the “Site Workflows” page. You can jump to this page by clicking a link in the “All Site Content” section.
When starting a workflow you can specify a RSS feed’s URL which differs from the default one. To do that, just change the text in the parameter field to the needed URL.
Click to open real size screenshot
After accomplishing the workflow, three latest news from the RSS feed will emerge in the list:
Automated Scheduled Workflow Start
If you want the workflow to add regularly the latest news to the list, you may use free software HarePoint Workflow Scheduler which allows starting scheduled workflows.
Create a new task for HarePoint Workflow Scheduler.
Click to open real size screenshot
Specify the task name, workflow, autorun schedule and workflow parameters (in our case it will be the URL of the RSS feed):
You will also need to select the account under which the workflow will start. Save the task.
Conclusion
Due to HarePoint software usage we could arrange news import within a few minutes without programming. By using conditions and actions of HarePoint Workflow Extensions you can create simple but effective workflows which are unavailable when using standard SharePoint components; and HarePoint Workflow Scheduler allows automated workflow start.