Not been here for a few months, I understand we have had major imrovements in Studio, congrats to all concerned.
Is it still not possible for Studio to read the variable name and value from Excel then create these pairs , I know we can easily get the value but not create the variable.
Thanks for that, unfortunately the dictionary activities is not yet supported in the updated Studio.
I have succesfully created New Dictionary(of string,object) which is probably the same thing as the activities.
This works fine, gets the values perfectly.
But calling these vars later in the game is a bit cumbersome to say the least, think I will pass on this one, thanks again
What? Dictionary is a standard datatype. Itâs fully supported by UiPath.
Itâs not, and it offers capabilities that variables donât. Like being able to loop through all the name/value pairs in the dictionary, being able to check if a certain key exists, etc.
You donât need an activity. Just use Assign. Treat Config(âSome Nameâ) as a variable.
Assign Config(âMy Keyâ) = âMy Valueâ
Of course since the dictionary is âof string, objectâ the values can be string, or datetime, or int32, or double, or even complex things like datatables and arrays.
Dictionaries are very powerful and are the correct way to do config files. Read Range from Excel into a datatable, thenâŚ
Just as simple as that, now you have your name/value pairs from the Excel config file in a dictionary. Totally dynamic, just add whatever name/value pairs you want to the Excel file and you donât have to touch your code.
In all honesty, if Config(âSome Key Nameâ) is too cumbersome for you, programming isnât for you. Thatâs a very simple, simple thing compared to what youâll need to do in order to automate full processes.
Youâve also got the option to read the table and assign each to a global variable (new in 22.10), but Iâd agree with all of the above; stick to the REFramework/config file route.
So I should quit ?
Im not a programmer, dont want to be, im a heating engineer, not that it matters.
I just find what these softwares can do is amazing, UiPath / Power Automate etc.
Consider it an interest / hobby of mine.
I said the dictionary âactivityâ isnt available in the latest updated Studio and you came at me, that wasnt appreciated.
I used assign instead, all works perfectly.
However, I found it a tad cumbersome calling these variables later in the automation, thats my opinion, not a fact, an opinionâŚ
Im quite thick skinned, you have not caused me any distress whatsoever, infact you have helped me out many times before which I still appreciate.
But I do feel you can at times be a little sharp when conversing on this forum.
Iâm just matter-of-fact. I didnât come at you. I find no need for sugar coating things in a technical world where things either are or they arenât, thereâs no gray area.