Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2022 Release Wave 1 PlanDynamics 365 release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.
2022 release wave 1 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I have custom service which return list of data. But while its returning the data the list class also returning all parameter methods which is associated with service/List class. Please how can I fix this issue the list parameters that I don't required in json format. And I can't remove the parameter from class while its using for other service methods in same service class.
public YearBase parmInvoiceYear(YearBase _invoiceyear = years)
years = _invoiceyear;
public AmountMST parmInvoiceAmount(AmountMST _invoiceAmount = invoiceAmountmst)
invoiceAmountmst = _invoiceAmount;
public ProjId parmProjId(ProjId _projectId = projId)
projId = _projectId;
public Name parmSalesman(Name _salesMan = salesMan)
salesMan = _salesMan;
[SysEntryPointAttribute(true),AifCollectionTypeAttribute("return" , Types::Class, classStr(salesProj))]
public List getprojTotalCurrentYearAmount()
List saleslist = new List(Types::Class);
salesClassObj = new salesProj();
C# Web api
public HttpResponseMessage GetProjSales()
CallContext callContext = new CallContext();
callContext.Company = "ENPR";
callContext.Language = "en-us";
testcustomerClient client = new testcustomerClient();
custClass salesProj = client.getProjSales(callContext);
List<custClass> saleslist = new List<custClass>();
foreach (var item in salesProj)
return Request.CreateResponse(HttpStatusCode.OK, saleslist);
How can I remove "InvoiceDate":"1900-01-01T12:00:00","ProjId":"","Salesman":"", above format while list class from AX its returning all parameters.
You can create a new data contract class with the data you want and return this new data contract instead of the one that you're using at the moment.
If I create new data contract again I have to create service nodes and service group deployement. That means for every new service operatione Data contract and new service URL. This way it takes time. I need all operations projects, customers, sales etc all in one service url. But once I return data it should be related to that parameters only. Not all.
Why do you think that creating a new contact class and modifying code of a single service operation requires creating a completely new service and even a new service group?
You need do decide what you want. If you insist on having a single operation returning everything, then don't complain that it does return everything.
But it doesn't look like a good design. Why can't you create a single service with three operations, one of projects, one for customers and one for sales?
Also, consider if you can't meet your requirements with standard services, namely the query service or document services.
I manage by creating new contract class with single service. Once I called service operations its referring now new contract classes.
Business Applications communities