Quantcast
Channel: Microsoft Dynamics 365 Community
Viewing all articles
Browse latest Browse all 17314

AX2012 R2 RunAs and Global::RunClassMethodIL

$
0
0
Just a quick note on using RunAs in AX2012: The static method being called by RunAs should have a container parameter in the method declaration. Otherwise, system will complain that the static method was not found. So: // This would fail with static method not found error. public static void methodWithoutParm() { } // This would work! public static void methodWithContainerParm(container _c) { } In fact, the same can be said to Global::RunClassMethodIL. However, the error throw by Global::RunClassMethodIL...(read more)

Viewing all articles
Browse latest Browse all 17314

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>