Usman
Usman

Reputation: 163

How to confirm If current request from EP AX 2012

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

Upvotes: 3

Views: 1173

Answers (2)

DAXaholic
DAXaholic

Reputation: 35338

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

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

Upvotes: 3

Kevin DeVoe
Kevin DeVoe

Reputation: 602

Look in \Classes\TradeWorkflow

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

Hope this helps.

Upvotes: 3

Related Questions