General X++ Development

How do I call a static method in X++?

Asked by Sunny Vasty· Aug 13, 2026· 1 answers

How do I call a static method in X++?

SSunny Vasty75 reputation · answered Aug 13, 2026

Use the double-colon syntax.

X++
MyUtilityClass::doSomething();

You do not create an object instance just to call a static method.