How to confirm If current request from EP AX 2012

1.1k Views Asked by At

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

2

There are 2 best solutions below

0
On

Look in \Classes\TradeWorkflow

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

Hope this helps.

0
On

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

if (webSession())
{
    // Do some web-specific stuff
}