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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Check the service which is created using the class.

(0) ShareShare
ReportReport
Posted on by 568

Hi guys,

Long before we have created a service in ax 2012 r2,but  we just dont remeber the name of the service but we do remeber the class name which is usedd for the service.Toget the name of the service I tried the following code in the job.

static void Job118(Args _args)
{
    AxdWizardParameters     axdWizardParameters;
   axdWizardParameters = new AxdWizardParameters();



axdWizardParameters = AifServiceClassGenerator::getServiceParameters(classStr(AXPCustomerServiceDemo));
   
    
    print   axdWizardParameters.parmName();
    pause;
//info(axdWizardParameters.parmAifServiceClassName());
//info(axdWizardParameters.parmAifEntityClassName());
//info(axdWizardParameters.parmName());
//info(axdWizardParameters.parmQueryName());

}


But i am getting the error that

axdwizardparamters are not initailized.

I searched in the Net,but i couldn't find anything.

Please advise on this,

Regards,

AXTechie 2120

*This post is locked for comments

I have the same question (0)
  • Mea_ Profile Picture
    60,284 on at

    Did you try to check cross references for this class?

  • AXTechie2120 Profile Picture
    568 on at

    Yes I did,I have that class,but i want to get the name service which is created using this class.

    I get the error when  i am trying to get the info.

    "axdwizardparamters are not initailized."

    Regards,

    AxTechie2120

  • Mea_ Profile Picture
    60,284 on at

    So cross references for this class show only this class?

  • AXTechie2120 Profile Picture
    568 on at

    yes.

    Can i know why i am getting this error?

  • Mea_ Profile Picture
    60,284 on at

    Yes, to find this out you need to debug AifServiceClassGenerator::getServiceParameters());  method, there are like 20 conditions why it could return null, just step through and see what is wrong.

  • AXTechie2120 Profile Picture
    568 on at

    OK I  will check and let you know

  • AXTechie2120 Profile Picture
    568 on at

    Hi,

    Its throwing the error on this line.

    The class that i am using here is a custom class.

    servicedictclass takes values of my class,but still i dont know what is causing this.I think its the aifdocumentservice is causing me the trouble.

    serviceDictClass = new SysDictClass(className2Id(_serviceClassName));

       if (serviceDictClass == null || serviceDictClass.extend() != classnum(AifDocumentService))

       {

           // The service class is not a document service

           return null;

       }

    Regards,

    AXTechie 2120

  • Mea_ Profile Picture
    60,284 on at

    You class should extend AifDocumentService class. Does it ?

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans