Skip to Content
0
Aug 04, 2016 at 07:19 AM

How to check runtime environment of UDF?

96 Views

Is there a way to detect where an UDF runs? I like to detect if a UDF runs/was called by...

  • ...in productive environment
  • ...from "Test"-button in the ESR

Background: In my UDF I'm using DynamicConfiguration. The values therefore only exist in productive environment, so I get exceptions when running the mapping test in ESR. Therefore I like to detect the environment, so that I can handle it and call the DynamicConfiguration code only, when the UDF was called by the "productive" environment.