Method Tracing

Is anyone familiar with the method name for adding a part number to a sales order line? I tried tracing the method and came up with ChangePartNumMaster, but when I try to create a simple BPM on that method in our test environment to display a message when a number is added, I get nothing.

Any help is appreciated as always.

Well, the first call is going to get a new blank line, then you’ll change things on the line, then update. You don’t have a call to just add a part number.

Do you’re trace again, but start before you click “new” for the line. Then go all the way up to where you would expect the message to pop up. (and for good measure probably up until you save the line).

You should have a bunch of methods, usually a getNew , then onOnchange of various things, then ending with Update(). I’m just laying out how Epicor usually does it, so you will want to look at your specific trace.

Also, I’m assuming you added some criteria in your BPM? (hard to know when you haven’t shown what you’ve done). But if you just want to check if it’s actually firing, make sure you put in some pop up messages before any criteria to see if it’s using the method you think it is.

3 Likes

Yes, my criteria was simple, more or less just to find the method before I started really diving into it. I’ve got a block of code wrote up for when I find the method, but in short, we’re going to update a need by date based on product code of the part.

The criteria I used was the method is called by myself, then show message.

After running the trace again, I get “GetNewOrderDtl” (creating new line), “ChangePartNumMaster” (adding part number to the line), and “MasterUpdate” (save).

I believe I want the changepartnummaster method, but I can’t get anything to fire.

ChangePartNumMaster is correct, I have successful BPMs on this method.

Can you tell us what you’re trying to accomplish and screenshot the BPM?

1 Like

Initially I was just attempting to find the method. But now I can’t even get a simple trigger to fire. This literally just states, "if method is called by jseidl (me), show this message.

Using pre-processing on the ChangePartNumMaster Method.

At the risk of sounding stupid, I recently refreshed out test environment database to reflect our production environment. Is there something I need to do to enable BPM’s again?

Put the message with no criteria at all. And look at the BPM and make sure the enabled checkbox is checked.

BPM is enabled, tried without criteria, still nothing.

Start taking screen shots of every screen that you use to make the BPM and posting. Something isn’t right, but we can’t see what you’re doing. If you show that, maybe we can pick out what you’re doing wrong.

Some kind of configuration as it seems. I’ve got other BPMs that do not work in the test environment that work in the production environment. All enabled, all the exact same.

Look at this then maybe?

Thank you. We have a larger issue here that was identified.