Issue Material via a Function, but part bin doesn't update

That did it! I added this to my function.

var context = Ice.Services.ContextFactory.CreateContext<ErpContext>();

Erp.Internal.Lib.DeferredUpdate libDeferredUpdate = new Erp.Internal.Lib.DeferredUpdate(context);
libDeferredUpdate.UpdPQDemand();

Note: I tried adding it to my BPM first since currently the function was triggering the BPM. Adding it to the deferred update to my BPM didn’t help, but adding it at the end of my function fixed it.

Now I’m wondering how often I need to include that in functions. Do I need to end every function with a “take care of those extra tables right now” command?

I guess it’s time to put the code back in the function where it belongs instead of the BPM.

2 Likes