Copy/delete multiple SharePoint list items

  • 2 February 2015
  • 1 reply
  • 1 view

Badge +2

I have a problem with copying and deleting multiple SharePoint list items. 

 

I created two SharePoint lists: Draft and Archive. Both list contain columns sucha as: Name, Email address and DraftID. In a Draft list I collect email addresses that was saved in a email message. Each email address is saved as a separate list item. I would like to copy each email address that is bound to email message and transfer it to Archive SharePoint list (each e-mail address also presented as a separate list item). 

In a workflow I tried to use SharePoint list Items event and copy action but even using advanced mode I was able to copy only one email address. I am not able to specify how many idems to copy because it might change for each instance.  For List Item ID I use multiple values : DraftGetListItemsID. Now I am thinking of using IPC Event to cope with this problem. Do you have any ideas? 


1 reply

Userlevel 5
Badge +18

Perhaps you can use Plan-per-slot to create a looping behavior to process multiple items, similarly to:


 


http://help.k2.com/kb000685


 


OR 


 


http://old.k2underground.com/blogs/pitchblack/archive/2008/08/26/looping-through-an-activity-for-each-item-returned-from-a-smartobject-list.aspx

Reply