New resources available on Microsoft Learn
Did you know that Microsoft Learn offers free training modules to assist you on your path to mastering Dynamics 365 for Finance and Operations? Become an expert at your own pace or share with your team to foster growth.
Dynamics 365 2019 release wave 2 plan Discover the latest updates to Dynamics 365.Release Plan | Weekly Deployment Notes
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 and Operations TechTalks | Customer Engagement TechTalks | Talent 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