BPM to Send Email to Buyer that PO is Approved - Not Working

I have created a data directive that is supposed to send an email to the buyer when their PO is approved, but it does not seem to send the email. We have a data directive that sends an email to the approver when that is needed and that works.

Any help is appreciated. Thank you.

Here is what I have setup:

24_0222_BPM_Email_Contents

Can you confirm you are getting past the first condition? I suspect you should be - but that’s where I’d start. Add an email widget to the false condition to yourself with a note like “CONDITION 0 IS FALSE” or something. That way you can prove that it’s getting past that point. If it is, that is one thing. If not, it’s another. Just for belt and suspenders, I’d add an email to the True condition also before your Execute Custom Code block. So you know you should get an email either way. If not, then it’s a MailQueue issue. If you do, then you know where to go next.

I did this and my condition email sent correctly, so then I looked at the Execute step and figured it out.

In the Execute Custom Code step, the code that I used was incorrect. Character03 was defined as POHeader.EntryPerson and it is supposed to be PurAgent.EmailAddress. I made this change and it worked.

I guess POHeader.EntryPerson would work if the user id was an email address, than that would work.

Thank you for your help, it pointed me in the right direction to troubleshoot.