Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Determine currently used service

Question
Eduard Lebedyuk · Mar 11, 2016

Determine currently used service

I want to determine what service (eg. %Service_Console) is used for current process.

I can probably use some workarounds, i.e.

  • Is %request object present
  • Does $Device  contain |TRM|
  • etc

But is there any centralised way to get current service?

#Object Data Model #Terminal #Caché

Source URL:https://community.intersystems.com/post/determine-currently-used-service