balkishan
(Balkishan Singh)
May 8, 2026, 7:07am
1
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.
Hi @Rahul_54
welcome to community
so use an assign activity
and create a variable called Machine_name
and in value - just type environment.Machinename
later pass this variable in output mail
Screenshot for reference
[image]
Hope this Helps
Hope it helps!!
balkishan
(Balkishan Singh)
May 8, 2026, 7:22am
4
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.
balkishan
(Balkishan Singh)
May 8, 2026, 7:28am
6
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
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.