Hello @yigit.aybey ,
Do not use “Dim” to declare a variable. Instead of “Dim”, please use the arguments of the invoke activity.
Please check this linkehttps://docs.uipath.com/activities/docs/invoke-code . You have an example about how the activity works.
Hope it helsp!
Best regards,
Marius