How to create a "new" temporary table?

I have some code that is trying to populate serial numbers in the “Select Serial Numbers” dialog in Customer Shipment Entry. I am using Method Directive SerialNo.GetList.

The original ABL BPM in Epicor 9 had this line:

CREATE ttSerialNoList.

I’m trying to use this code to create a new entry in the list:

var ttSerialNoListRow = new SerialNoList();

But “SerialNoList” is not recognized. Am I missing a scope, or is the name changed?

you probably want to call the correct method so that all the values are correctly defaulted… Have you run a TRACE on the normal program? What I normally do is go into one of the base programs, turn on tracing (and clear it) then perform the function (Press the “NEW” button) and then look at the trace. You will see what business object is called, and then you can do the same within a BPM.

1 Like

You need to click on the References and find the SerialNoList dll

I actually tried that, although I wasn’t sure if I was on the right track. The only assemblies that have “SerialNo” in the same (searching via the Assembly name filter) are “Erp.Contracts.BO.SerialNo” and “Erp.Contracts.BO.SerialNoAssign”. Adding those didn’t get rid of the error when I check the syntax, however:

The type or namespace name 'SerialNoList' could not be found (are you missing a using directive or an assembly reference?)|

Sorry, I think I forgot to mark that last message as a reply to you.