I have a BPM that runs on ERP.BO.PO.GetNewPOHeader and this sets the default shipping address when a Purchase Order is created from scratch.
When we generate a Purchase Order from a Purchase Order Suggestion, the shipping address is not altered. Is there a different service I need to use? I have looked into the ERP.BO.POSugg services, but can’t seem to access the PO Header.
1 - If all PO’s created from scratch as well as all PO’s that are created via PO suggestions need to have a default shipping address set, why not use a data directive on the “OrderHed” table?
For example, on create of a row on the OrderHed table, default said shipping address.
If that doesn’t work:
2 - A BPM to run on “Erp.BO.POSuggSvc - GenerateShowCreated”
You should do a trace log (classic) or use the dev tools (kinetic) to see which methods are being called when PO’s are created from suggestions. By doing this, you will see the ERP.BO.POsvc is not being used.
This is what you can find in application studio, this is what is execute when you press “Ok”:
Additionally, you can go here to test the API yourself by going to - https://[YourEpicorServer]/EpicorERP/api/help/v2/
Let me know if you have any questions~
EDIT:
Some additional assistance: To actually make the update you’d like, you can update the dataset before the “GenerateShowCreated” executes, or you can just pull the “PONUM” from the method to then call the PO.Update method, passing it the PO Number to update after the “GenerateShowCreated” executes. As mentioned, many ways to go about it.