cancel
Showing results for 
Search instead for 
Did you mean: 

#BPTechTips How to form a collection using environment variable

HarshitRawat
Level 8
Right now BP doesn't provide an option for creating an env var with Collection datatype
In case you wish to form a collection instead of creating X number of different env variables , you can follow below steps

Create an env var of Text type  with the values you want ,separated by any character say a comma (,)

18910.png
In your process or object create a new data item with exposure as Environment variable

18911.png
Use the Utility- Strings --Split text as shown below 


18912.png
As an output of this Action you would get a collection of values you entered in the environment variable

18913.png

------------------------------
Harshit Rawat
Senior RPA Consultant
------------------------------
4 REPLIES 4

TobiasArnold
Level 6
Hi Harshit,

we use a different approach: If you need more complex data, put JSON formatted text in an environment variable and deserialize it to a collection.

------------------------------
Tobias Arnold
RPA Developer
ITERGO GmbH
Europe/Duesseldorf
------------------------------

That's right, I covered the topic in this topic
#BPTechTips - Multiples Environment variables | Blue Prism Product

------------------------------
Emerson Ferreira
Sr Business Analyst
Avanade Brasil
+55 (081) 98886-9544
If my answer helped you? Mark as useful!
------------------------------
Sr Cons at Avanade Brazil

Tobias and Emerson
Guys , i too use the approach which you are referring to .
My motive behind posting this was to just show other folks how to form a simple collection from env variables, till the time we get the Collection data type in the drop down 🙂
I see there is an Idea pending for a long time on this 


------------------------------
Harshit Rawat
Senior RPA Consultant
------------------------------

I appreciate your information, please bring us more information like this, it sure makes our forum richer with information.!

------------------------------
Emerson Ferreira
Sr Business Analyst
Avanade Brasil
+55 (081) 98886-9544
If my answer helped you? Mark as useful!
------------------------------
Sr Cons at Avanade Brazil