Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, PowerApps, Microsoft Flow, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates to Dynamics 365Release overview guides and videos Release Plan | Early Access Availability
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
I want to get List of transfer id and voucher id from the user and then store it in the contract class. Each transfer Id has related voucher Id.
I have thought that I can define List of container. each container has two elements. one transfer Id and other one voucher Id related to the transfer Id. This solution is not working I've receive this error: Invalid parameter container type. it seems I can not use container type in contract class.
I want to know what is the Best solution considering performance for performing this action?
The issue is with the parameter type, parameter type container are not allowed.I think ,you can try to use collection class like List.
https://community.dynamics.com/365/financeandoperations/b/alirazatechblog/posts/custom-aif-service-in-dynamics-ax-2012-r3-from-scratchYou can loop through the list values using ListEnumerator.
I hope it will help you.
Instead of using a container, create a data contract class containing a transfer ID and the related voucher ID. Then use a list of these data contract objects instead of a list of containers.
The resulting code will also become easier to understand and maintain, because you'll work with methods with descriptive names (such as parmVoucherId()) instead of something like "the second element in a container", which doesn't describe the intent, compiler can't check types and so on.
Please have a look at this blog post: msdynamics.nevoitech.com/.../
Containers are not supported, you have to create a List of strings ,
it is simmular like any WCF data contract.
Business Applications communities