Can't find package for microsoft.activities.extension for dictionary activities,thanks for any help!


Can’t find package for microsoft.activities.extension for dictionary activities,thanks for any help!!!

Hi @Sai_Kumar_111

Check the below thread.

Regards

@Sai_Kumar_111

I believe you are on windows compatibility and in windows that package is deprecated…so it is not available

but any activities related to dictionary can be directly done using assign

dict("Key") = "Value" - to assign a key with value
dict.keys to get a list of keys

dict("KeyName") - to get the value usign key

everything can be done directly

Hope this helps

cheers

can you please let me know whats the variable type need to be selected for variable “value”…

Depends on the dictionary:
new Dictionary(of String, Int32) - Value is of int32
new Dictionary(of String, String) - Value is of String etc.

When:
new Dictionary(of String, Object) - Value can be string, int32…
Then
Access myDict("MyKey") as usually
convert / cast the returned value into the needed DataType e.g. Convert.ToInt32(myDict("MyKey"))

(post deleted by author)

Hi Peter,here i’m just using an excel file like referring "title "as key and “details” as value,taking them in data table and using for each loop…im little confused what can these key and value variable types can be given!!!thanks for any help…



So it could be a Dictionary (Of String, String)
myDict = new Dictionary (Of String, String)()

For each row in Datatable | currentRow in YourDTVar

  • Assign Activitiy:
myDict(currentRow("Titel").toString.Trim ) = currentRow("Details").toString.Trim