Using BPM to populate Comment Section of PO

Hello,

I am fairly new to BPMs and I am in the process of trying to create one to auto populate the comment section of our POs with information pulled from the ShipVia and OrderHed tables. I read some of the topics in here and tried implementing what I read but so far nothing is working.
My Condition is for the Drop Ship check box in the Releases/Detail section to be checked:

I then did a Update Table by Query:


query

mapping:

image

Nothing populate my comment section and I have no idea what I am doing wrong and what I am missing

Your picture shows you connected to the false side of the condition.

I tried both sides. Nothing works

Are you doing this on pre or post processing?

pre processing

You first step is to make sure it’s firing.

Add the message box after the condition and see if it’s firing when you expect.

When you update the comment, are you also setting RowMod to “U”?

I have not done that , no

I will try this

I don’t know for sure… but I don’t believe you can update the release and the header in the same call. So I believe it’s going to end up being more complicated than just filling in the field.

You’ll need to see what rows you have to work with. Once you get the messages firing, add in the row or fields into the message box to see what rows you have. I suspect you are only going to have the release rows.

Also, this will replace the comment. So if the user entered something, it will be overwritten by this directive. You’d have to append to the existing comment and add some logic to ensure it’s not added multiple times.

@Mark_Wonsil

Take It Slow Fran Healy GIF by Travis

Ok, I am going to start working on getting the message to fire properly

Ok, the messages are firing properly. What is my next step ?

In the message, in the body you can right click and do field, or row queries. Add that into the message and see what rows are populated in the BPM. I suspect there isn’t a header row.

Do you really need to update the PO comment or do you just need to reference something the lives on another table when you print the PO form PDF? Altering a Report Data Definition, and then flowing that down the SSRS template is usually less of a headache than monkeying with something like this.

It’s a relational database, use it to alias data rather than duplicating it.

2 Likes

By Header and Release , do you mean PO Header and PO release ?

Correct.

I can see a header row

ok, then you can try to change the row mod to U as well as make the update to the field that you are updating and see if will update.