Hi @Paulina_x, @Gokul001 and @postwick
There is now a standard activity/object in Studio/robot which can get you the process name during runtime.
Get Current Job Info
activity returns a Object containing runtime related properties.
In your case, you are looking for ProcessName. JobInfo.ProcessName will get you what you want.
The process name in this case was "ModernClassicDemos"
We have used this across our automations, not failed us ever! We use it to get the current workflow name where the robot is executing.
Here is the sample file:
GetProcessName.xaml (4.9 KB)
Hope this helps!