Create Item Workflow – SharePoint Designer 2010
Sometime you have to create a new list item in a different list on the list item changed or list item created events. It can be to create an announcement on a list item created or changed. In these cases you also like to use the originator list item properties in new list item.
In order to create this workflow using SharePoint Designer 2010 we will use the same approach as in my previous blog. We just do changes in the workflow Action. So create a new workflow CreateItems in SharePoint Designer 2010. You can find more help on creating workflows using SharePoint Designer 2010 here.
For this demonstration I will create a workflow which creates an item in a list name ParentList on item created and item changed of Announcements list. For this I created three new fields in custom list ParentList. These columns names are listName, ItemGuid and ItemTitle. All these are single line fields. And we will assign values in these columns through workflow.
Open Action in the top ribbon of the workflow setting screen in SharePoint Designer 2010. Select Create List Item option. It will create a standard statement for Create List Item Action. Now click on this list and select ParentList.
Click on the ListName in fields and select modify. Add value Announcements as list name. Then add a new field for column ListItem. For value select the function button (fx) and then select the Current Item in Data source and select the GUID in Field from source. Click Ok finally.
Add another field for ItemTitle column and select the Current Item and Title instaed of GUID.
It will actually tell workflow to assign these values to newly created item. In this case it is assigning the Announcements list item GUID and title to new item. Also we added Announcements as a text for ListName here.
Now save the workflow and then from workflows setting screen change the Start Options. Select the list item created and list item changed there. After doing all these settings just publsih it.
Once this workflow is deployed on the site, open the site and add new item in Announcements list. It will create a new item in ParentList and assign Announcements list item GUID and title to the specified fields of newly created ParentList item.
Isn’t this very simple and cool