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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Custom Args DataContract not showing at C# project.

(0) ShareShare
ReportReport
Posted on by

Hi!

I followed this tutorial https://shashidotnet.wordpress.com/2013/01/15/walkthrough-calling-the-query-service-with-a-dynamics-query-ax-2012/ to create a custom AifQueryBuilderArgs class. 

If I go to my C# project and add a service reference I can never see the custom class I created. I tried updating the reference, removing and adding it again, compiling AOT classes and at this moment I'm compiling the Services node. So far, no luck.

UPDATE: Compiling the Services node didn't work as well.

Since I'm not sure this might be the problem, more information: I created a project for that class and saved it at the VAR model layer.

Any ideas on what am I missing here?

If needed, here's the code and the project structure:

[DataContractAttribute]
public class AegirDescriptionParamArgs extends AifQueryBuilderArgs
{
    str description;
}

[DataMemberAttribute("Description")]
public str parmDescription(str _description = description)
{
    description = _description;
    return description;
}


Thanks!

*This post is locked for comments

I have the same question (0)
  • Bashir Ahmad Profile Picture
    5,248 on at
  • Community Member Profile Picture
    on at

    Thanks, but I don't want to create a custom service. I wanna be able to use the default QueryService with my custom QueryBuilder and custom Args, like the attached link. Is it not possible?

  • Verified answer
    Community Member Profile Picture
    on at

    Problem solved.

    The issue was with my AOT Tables. One table wasn't  compiling. I had to compile all tables' node in order to find that out.

    After I solved that, I just generated an incremental compile and my class showed up at C#.

    Thanks.

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

News and Announcements

Season of Giving Solutions is Here!

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

#2
TAHER Mehdi Profile Picture

TAHER Mehdi 3

#3
Nakul Profile Picture

Nakul 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans