I’m hoping this may be a softball to those who are practiced in BPM’s and C#… I’m not.
I have a relatively simple BPM and it all works. However, the end result I’m looking for is to pop up a message with (hopefully) pertinent information, but I’m not sure how to get to it without code, nor how to write said code.
Business Case:
We have some parts for which we have internal specification documents which the Buyer needs to send along with the PO. We’re not set-up to auto-email Vendors because I want the buyers on the hook for reviewing everything and purposefully hitting “send”. So, I don’t need to do this via APR to attach a spec document or anything (although I may do that down the road).
What I’m looking for is just an “alert” message saying: “Hey one (or more) of the parts on this PO has an assigned specification, so pull that document and send it along with the PO.”
We store our Specification cross references in our UD02 table. So, Key1 is PartNum, Key2 is “SPEC” (along with other various possible values)… and if there is a row for a PartNum where Key2 is “SPEC”, Key5 holds a value of a UDCode (SPEC001 for example).
Below is the BPM as it stands… again, works. I can get a “warning” message to pop-up when there are (1) or more parts on a PO that have specifications against them.
Here’s the Query in that final Condition:
Again, I probably don’t NEED Ice.UDCodes even referenced in this query, because queries in conditions don’t return data (or if they do, I don’t know how to access it). I’m just using it for a row count.
What I’d LIKE to do is have the warning message specify WHICH part on the PO has a specification, as well as what that specification code is (CodeID), and potentially even the Description (CodeDesc).
So… I’m assuming a Code block for each PODetail Row where PartNum has a matching row on UD02 (where PartNum = Key1 and Key2 = “SPEC”)… and then I can get to the UDCode data where the UD02.Key5 = UDCode.CodeID… return CodeID and CodeDesc.
There potentially COULD be a part that has multiple specifications… so in that case, I wouldn’t mind seeing both values returned.
I’m assuming I can potentially inject a Code widget after the final condition and before the Message that would populate some kind of temp table?? But can I then reference those results in the final Message show?