System variable which give current workflow name and machine name

Hi,
Which variable we can use, which can give me current workflow/bot name and the machine name, i have to write in my custom log file.

@balkishan

Use get current job info activity to get the workflow/bot name and to get the machine name use Environment.machinename

Find the below snap for your reference,

If you find this helpful please mark it as solution.
Happy Automation!

Hi @balkishan

Please find the below thread for your reference.

Hope it helps!!

can you help me with the screenshot plaease

which activity ur telling.

we don’t have a system variable here ?

Please take a look above , i edit my post, Again i am posting here

I highlighted all the required expressions and activity.

Drag the Get Current Job Info activity,
Create a variable from properties panel, at Job data(JobInfo).

and check for immediate panel for the expressions.

i am displaying the info in a message box,but the type of variable is different type, i tried to convert into string also, but it is giving error while converting

Hi @balkishan,

Try the below:

Thanks

Hope vBotName is the variable of Get Current Job info activity, if yes,

then you need to use like vBotName.WorkflowName.

Take a look at left side of the immediate panel, there i written the expression.