Process.GetCurrentProcess.MainWindowTitle is empty in Debug mode for Studio version 23.4.x

How to get process name in work flow?

Issue Description:

Process.GetCurrentProcess.MainWindowTitle is used to get the title of the process but in debug mode of Studio version 23.4.x it's displaying empty value.

    Resolution:

    • Use get-current-job-info activity to get the process details instead of Process.GetCurrentProcess.MainWindowTitle