I have created a series of Method Directives on CustShip.Update Master
PreProcessing: If ReadyToInvoice changes from false to True, Enable Post Directive
Post Processing: If this directive has been enabled from PreProcessing directive above, Invoke Function B2.
B2 is configured with the three requirements of PackID, CustNum, and OrderNum.
I know for a fact the info is passed along in the BPM as I have checked every step using a message and inserting the info to make sure it is populating. However, when I put up a message in the function, it comes back blank. Like their isn’t any info coming from the BPM.
The function has ShipHead and ShipDTl in the libraries, along with CustShip in the services.
I’ve been setting them as Int, do I need to set them up as something else? Sorry for all the questions, this is the first time I have used functions, so still earning. This is the one area I am really fuzzy on, connecting the function to the parameter.
So, I have a BPM that has the ordernum, packnum, and custnum I need to pass to the function. I have created the parameters in the signature but the function still isn’t picking them up. Trying to figure out where I went wrong and why it isn’t picking them up.
Basically looking to go from If ReadyToInvoice on Shiphead goes from false to true, then change three fileds in OrderHed. The BPMS does the first part, checks for the flag to go from false to true in preprocessing, and then activates the function in post processing. Except, the function doesn’t seem to get the info. So I have something wrong, just not sure what I am missing.
Thoughts?
Quick question: I have the parameters going through the Functions now. THANK YOU! Now, however, when I run the parameters into the Function that has OrderHed, the OrderHed table isn’t populating any info in it.
It is set up where the BPM sends the parameters to BPMPickup Function that is using CustShip, and that sends the parameters to OrderFieldChange which is using SalesOrder.MAsterUpdate.