Skip to main content
Nintex Community Menu Bar

Create folder and copy list items to that folder

  • March 10, 2016
  • 5 replies
  • 16 views

Forum|alt.badge.img+5

Hi,

I'm working with Nintex Workflow 2010. I've created a collection variable and I'm using for each loop to copy certain items from list A to list B. Now, I want to modify this workflow. I want to create folders in list B with the name of a date column in list A. I want it inside the for each loop so that it is run only when certain conditions are satisfied. And then I want to copy the items from list A to the folders in list B. I'm new to Nintex. Can anyone tell me how this can be done?

Thanks,

Korak

5 replies

Forum|alt.badge.img+16
  • March 10, 2016

What action are you using ?


Forum|alt.badge.img+5
  • Author
  • March 10, 2016

Hi Fernando! I'm using copy item action to copy the items from list A to list B inside a for each loop.


Forum|alt.badge.img+11
  • Nintex Partner
  • March 11, 2016

Hi Korak,

you can use the "Create Item" action to create the Folders in your List B, just choose "Folder" as a content type for the new item and it will create a folder. Place this action inside a "Run if" to create the folder only when your conditions are met.

Afterwards you can use the "Create item in another site" action to create your items in list b. In this action you can also provide a folder name to place your item inside the recentyl created folder.

Regards

Philipp


Forum|alt.badge.img+5
  • Author
  • March 11, 2016

Hi Philipp,

Thanks for your suggestion. But, can I not use 'Create Item' action inside the for each loop? I want to create a folder for every item for which the conditions are met. Since I'm using 'Query List' action to filter the items and I'm storing the ID in a Collection variable, therefore it will be simpler and easier if I can create the folders inside the for each loop.

Regards,

Korak


Forum|alt.badge.img+11
  • Nintex Partner
  • March 11, 2016

Of course you can use this action inside the loop, if it meets your requirements.