is there a way in C/AL to detect if we run on RTC or Classic?
Try with CURRENTCLIENTTYPE
You can detect that by using IF ISSERVICETIER THEN...
It returns true if RTC is in use.
Only a precisation: After checking that, you should also check IF GUIALLOWED THEN... because ISSERVICETIER is true also if the code is called by a web service. So, ISSERVICETIER = TRUE and GUIALLOWED = TRUE means RTC.
sorry, I was too fast
Try with Currentclienttype to check, that a windows clienttype is used. Then you can use ISSERVICETIER
Business Applications communities