Reputation: 163
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
Reputation: 35338
You could check if Global::webSession()
returns a valid object:
if (webSession())
{
// Do some web-specific stuff
}
Upvotes: 3
Reputation: 602
Look in \Classes\TradeWorkflow
The method: activatingFromWeb
will tell you if it is being triggered from EP.
Hope this helps.
Upvotes: 3