First, I am very appreciative to all who post to this forum. I have learned immensely from reading posts here, and hope to be able to contribute in my own time.
I am attempting to automate Order Reservation in Fulfillment Workbench. I have executed a trace log and seem to have the methods down, I just cannot seem to mirror the following two methods in OrderAllocImpl:
CheckDates() and AutoReserve()
I cannot seem to cast, or find the method or properties needed, to create a SlimOrderAllocDataSet from a OrderAllocDataSet. The method before the above two methods, OrderAllocationGetRows() returns an OrderAllocDataSet, and then the very next method is CheckDates, which accepts a SlimOrderAllocDataSet.
I noticed the OrderAllocAdapter returns a SlimOrderAllocDataSet, but I do not know if that is what I am looking for. I did look at the Methods and properties available in OrderAlloc.dll, but to no avail.
You can declare a new SlimOrderAllocDataSet as follows:
SlimOrderAllocDataSet dsSlim = new SlimOrderAllocDataSet();
and copy only the columns needed for the SlimOrderAllocDataSet from OrderAllocDataSet.
Thank you Prabin. Here is my initial code for Automating the reservation process. There is a lot of testing yet to go, but seems to work in that it returns the same message I get when I use Epicor’s function. With the help of Prabin’s suggestion, I looped through the OrderAllocDataSet and inserted each row into a SlimOrderAllocDataSet.