I think you have to put the dependencies before LogLevel, so it will be like : uiPath.Core.activities.LogLevel.Fatal
Or another library if it’s not in this one, if it doesn’t work i’m cluecless, sorry
I was trying to Set the Type of argument as LogLevel, but it doesn´t work.
At the screensho it´s a default value, it´s throwing the error everytime when i open the expression editor, these values are default values (that LogLevel.Fatal is default logLevel of Log Message)
So its nessesary to do it in VS and than import as a activity to the Studio?
The goal is to have 2 arguments:
in_logMessage
in_logLevel
We are using logging, where we need to log also the name of workflow, so because i dont want to put everytime to my log messages this string Jobs.workflowname +": " + logMessage, i just want to make a new logMessage where i can just put logLevel and String with arguments
I don’t know how we can implement this method in invoke code, because we need activity context object. In visual studio activity creator you can also get and use current workflow file name or path. What is more LogLevel can be implemented there as dropdown in property panel.
You’ve already been given the correct answer above. Read the validation message, ‘LogLevel’ is ambiguous. This means it can find an a Loglevel enum or class etc in multiple namespaces so the code doesn’t know which one you want to use, you need to fully qualify the expression by putting the full namespace.