Hi!
I'm working on a training project and my aim for now is to send an e-mail when a form is rejected.
I managed to send the e-mail, but I also wanted to mention in the e-mail the ID of the rejected data. However, when I use the following expression: =pv!customerDetails.customerID
The rejected data is called "CustomerDetails" and contains a "customerID". In the process I also used a process variable - customerDetails, in which I save the CustomerDetails. I also tried to add an input variable which would have the id value inside, but I didn't manage to use it in the mail either.
Thank you, in advance!
Discussion posts and replies are publicly visible
If you're using the default email body text creation system (i.e. the rich text editor) directly in the Send Email node, you'll need to click the control to add an "expressionable box" into your body text - then you can click the expression box icon it adds, and bring up an expression editor, and type anything you want in there (including HTML code, iirc).
That's exactly what I did. The expression =pv!customerDetails.customerID was in the expressionable box
That's the correct way - can you clarify what went wrong?
Are you just saying it's blank in the resulting email? If so: Did you check your process insstance to verify that "pv!customerDetails.customerID" actually had a value at the time the Send Email node was executed, for instance?
Oh! Now I got it, I thought that the id (which is an auto-generated primary key) was created after I was filling the form, but it seems that it will be created later, when inserted in the DB. Thank you!