Hi @Hara_Gopal
In UiPath you have to create a new dictionary variable inside invoke code and assign that dictionary to your output dictionary variable.
Try this,
Dim dict As New Dictionary (Of String, String)
Dim item, key, val As String
Try
For Each item In lst 'lst is a list passed as input
key = item.Split(CChar(“:”))(0).ToString.Trim
val = item.Split(CChar(“:”))(1).ToString.Trim
dict.Add(key, val)
Next
emailDict = dict
Catch e As Exception
console.WriteLine(e)
console.WriteLine(e.Message)
console.WriteLine(e.Source)
End Try