Trying to match a serial number to an RMA/repair part number (Think I need to populate a SerialMatchingDataSet but I'm not sure how)

Hi All

We’re using some Epicor code that’s Dispositioning an RMA to an associated job. The code basically gets a SerialNoListDataSet and RMADispDataSet, populates them as needed and then runs the Update method of a RMADispImpl class.

After all this is done I want to link the serial number to the RMA part number.

In the Epicor Trace I saw a call to an AutoMatch method in the SerialMatchingImpl class that I think will do the trick.

The only issue is that it accepts a SerialMatchingDataSet as a parameter and I’m not sure how to populate this dataset, I can’t see any obvious methods that would do this in the SerialMatchingImpl object, am I missing something?

I also tried calling the ChangeSerialNum method of the SerialMatchingImpl object but I got an error saying “Serial Number Record Not Available.”.

Any help would be appreciated.

(Sorry there’s no code snippets, I don’t actually own the code and I’m not sure I can post it online).

Many thanks!