web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Business connector call non-static class method - Dynamics 09

(0) ShareShare
ReportReport
Posted on by 2,470

Hi

1) I have an X++ class with a non-static method.

2) I want to call this non-static method from BC.Net within a WCF service

In the past I would of used "CallStaticClassMethod" to call a static method - but this approach will not work this time!

I believe I have to create an instance of the class (will this be in the WCF service method using BC.Net)?

*This post is locked for comments

  • Verified answer
    Bilal Issa Profile Picture
    4,370 on at

    Hi,

    Yes, you will need to create an  instance of the class first like the following.

    AxaptaObject class;

    ;

    class= ax.CreateAxaptaObject(ClassName);

    class.Call(methodName, paremeters)

    Regards,

    Bilal

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans