How to get the current active company in AX

By running the curExt() function the current active company is returned.

static void curExtExample(Args _arg)
{
str s;
;

// Sets s to the extension of the current company.
s = curExt();
print "Current extension is " + s;
pause;
}

Comments

Popular posts from this blog

Execute and access code restricted internals as a partner or customer

Expressions in query ranges

Removing duplicate records