Hi Swati,
Yes you can generate a collection with just the name column in couple of ways.
Approach-I:The easiest way is you can create a defined collection let's call it Results and have only the Name column of type 'Text'. Then you can use the Loop stage to iterate over the collection you got from the 'Get Files' action and within the loop stage you use 'Add Rows' action from 'Internal - Collection' VBO to a add new row to the defined collection, 'Results' and then use a calculation stage to set the value of the Name column of the collection you received from the action to Results.Name. You can see the below screenshots:
Approach II:The other way is to use the 'Split Collection' action from 'Utility - Collection Manipulation' VBO. However, there are few pre-requisites to use this. First, you need to have two template collections which should be predefined in such a way that each one of them must have a single blank row. Secondly, the field definitions of those collections should be such that one template has the necessary field which you want that is in you case the 'Name' field while the other template collection has the rest of the fields which are not needed as shown below:
Here, if you check the overall fields of these two collections they make up the entire field list of our 'Files' collection which we got from 'Get Files' action that we want to split which is shown below:
Once these collections are in place, you need to create two undefine output collections out of which one will hold the field values that we want, let's name it as 'Results' while the other collection will hold the rest of the value that we don't want, let's call that 'Others'. Set up the parameter values for the 'Split Collection' action as shown below:
Now we can run the workflow and get the desired result in 'Results' collection while the other values are in 'Others' collection:
------------------------------
----------------------------------
Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily
Regards,
Devneet Mohanty
Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,
Wonderbotz India Pvt. Ltd.
Blue Prism Community MVP | Blue Prism 7x Certified Professional
Website:
https://devneet.github.io/Email: devneetmohanty07@gmail.com
----------------------------------
------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.