3

I am sure there will be some helper method/class to confirm whether the current request originated from Enterprise Portal or from Client in AX2012R2. I just cant find it. Can you please point me to it?

Thanks

DAXaholic
  • 33,312
  • 6
  • 76
  • 74
Muhammad Usman
  • 163
  • 1
  • 4
  • 20

2 Answers2

3

Look in \Classes\TradeWorkflow

The method: activatingFromWeb will tell you if it is being triggered from EP.

Hope this helps.

Kevin DeVoe
  • 600
  • 2
  • 8
3

You could check if Global::webSession() returns a valid object:

if (webSession())
{
    // Do some web-specific stuff
}
DAXaholic
  • 33,312
  • 6
  • 76
  • 74