Error with a BPM

I am trying to create a sudo release notification for customers. I have added a new UD field on the customer that carries over to the Order called ASNEmail_c. I then have a BPM setup to check to see if the Ready to Fullfill checkbox changes from false to true and that ASNEmail_c is not “” Then it will send an email and in the to box i am sending it to that email address.

I am getting the following error when I try to set a dynamic email address. I am pretty sure I have done this in E10, but maybe I didn’t.

MasterUpdate.Pre.ASNEmail.cs(183,36): error CS1061: ‘OrderRelRow’ does not contain a definition for ‘ASNEmail_c’ and no accessible extension method ‘ASNEmail_c’ accepting a first argument of type ‘OrderRelRow’ could be found (are you missing a using directive or an assembly reference?)

Pre or Post method BPM?

1 Like

Pre

Have you tried to setup a message box to display the data in that field to ensure there is data.

Are you using code or widgets to process the BPM?

2 Likes

I get the same error when I try to use it in a message box… Interesting…

Seems like you may not have access to the dataset. What is your condition settings?

1 Like

I found a work around. I created a variable and then tied it to the ASNEmail_c field and then i was able to add it to the BPM Email.

1 Like

If you’re working with the Db.OrderRel table, the field OrderRel.ASNEmail_c can be accessed directly.

But if you’re working in a temporary table, like ds.OrderRel, you’ll need to use OrderRel[“ASNEmail_c”] to refer to the field.

As in: string email = OrderRel[“ASNEmail_c”];

Joe

2 Likes