BPM to Email Buyer's Boss when over spending limit

I am stuck on an error code. Please see below screen shots:
image
image
image

Any idea what I am doing wrong? I am just trying to get the email sent out when a PO is created over the buyers limit so it can be approved.

Should PurAgent.EMailAddress be PURAgent.EMailAddress in your last line of code?

Geez. Thanks! The SQL has it as PurAgent.

Crap. What about this when I save the Data Directive?

There is at least one compilation error.
PostTran.Over_Buyer_Limit.cs(91,56): error CS1503: Argument 2: cannot convert from ‘char’ to ‘string’
PostTran.Over_Buyer_Limit.cs(100,59): error CS1503: Argument 2: cannot convert from ‘char’ to ‘string’

Gotcha, just needs to be PUR (caps) since that was how you named the variable. The other error is related to mismatched types. You’ll need to “cast” or convert whatever that char is to a string type. I think it’s related to the last line still.

Something like this should work.

BpmContext.BpmData["Character01"] = PURAgent.EMailAddress.ToString();

Easy enough. Thank you!

1 Like

No problem!

1 Like

can I ask for some more help?


image

image