We recently updated to 2018.4.3, and I noticed that for logging in invoke code activity, LogMessage.Message input argument changed from string to object.
Dim logMessage As UiPath.Core.Activities.LogMessage Dim logInvoker As WorkflowInvoker logMessage = New UiPath.Core.Activities.LogMessage() logMessage.Level = UiPath.Core.Activities.CurentLogLevel.Info logMessage.Message = "test message" logInvoker.invoke (logMessage) logMessage = Nothing
logMessage.Message = "test message" does not accept string, and I’m having trouble converting this string into System.Activities.InArgument (Of Object) - it seems that this is the type it accepts. Therefore I’m unable currently to log from Invoke Code activity
Can anyone give me a suggestion how to do this?
Edit: corrected type of input from Object to System.Activities.InArgument (Of Object)