Add and Update List Item into Replica List via List Workflow
Context: The customer has a SharePoint list which manages requests for creating
new site collection. In this regard, a mechanism was needed by which new or
existing list item can be copied to another internal list (Replica list).
Solution: It can be achieved by writing an event receiver on the list but the
customer was not interested in a custom solution. So a workflow was created and
attached to the list on item added and item updated events.
The following snapshots will show you, how I have achieved the
respective results;
Open SharePoint Designer 2013 and select
your list. In my case it is ‘Site Collection Request list’. Now create new list
workflow.
- Add the ‘if current item field….’ Condition and set parameters as shown in the following figure;
2. Now add ‘Update ListItem’ object from
actions object list and configure it as follows;
3. Once you are done with it, the workflow is
capable of updating the list items into the replica list whenever any change occur in the original list's list item.
Follow the preceding process for
making the workflow capable to create new list items into the replica list. The whole workflow is shown in
the following figure;




No comments:
Post a Comment