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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

How to call multiple class in controller class in x++

(3) ShareShare
ReportReport
Posted on by 6
Hi all i have service class and i want to call one more class call in controller class static method i use 
 class namee::method name (); but it give object reference of instance not set error is blinking  so  how we can solve it 
please help any one have idea.
 
Categories:
I have the same question (0)
  • Anton Venter Profile Picture
    20,229 Super User 2025 Season 2 on at
    How to call multiple class in controller class in x++
    Hi,
     
    In addition to Martins response, give us more information so that we can help you. Code snippets (insert code snippet button), screenshots (insert image button) of the error with stack trace etc.
  • Martin Dráb Profile Picture
    236,025 Most Valuable Professional on at
    How to call multiple class in controller class in x++
    Moved from Integration, Dataverse, and general topics forum to Finance | Project Operations, Human Resources, AX, GP, SL forum. X++ mentone din th etitle indicates thaty the question is about either Dynamics AX or D365 F&O.
     
    The error means that you're trying to call a method on an empty object reference. The first step is finding the place where it happens; the debugger will help you with that.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 846 Super User 2025 Season 2

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 838

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 818 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans