This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Email notification from workflow

[email protected] - Wednesday, January 15, 2014 10:31 AM:

Hi

In a workflow I want to send an email notification. The problem is that I want to be able to choose the target identity from the form.

I suppose the way is to create a server method, but unfortunately  I don't know much about coding.

The method should do like this.

Example: 
On the "Express ECO" workflow in the activity "Close Change"  I add a new notification named "test". Target property is set to "Alternate".
On the itemtype "Express ECO" I add a new property called "notify_target" datatype = "item" data source =  "identity".
I put this property on the "Express ECO" form. 

On the "Express ECO" workflow on Activity "Close Change" I add a ServerEvent. The event needs to get the identity property from the form and put this identity on the itemtype "Activity EMail" on the property "alternate_identity".

I hope some of you have had the same challenge and able to help.

Kind Regards
Henrik Olesen
Kamstrup A/S
Denmark 



gks - Thursday, January 23, 2014 4:07 AM:

check the notifications tab.

however it is more important that you have access to an actual mail server. either set on up on your own or use your companies server (later is recommended)

 

Georg



dennis - Friday, February 21, 2014 9:35 AM:

If your Close Change activity is an end activity of the workflow and you are not already using either the owner or manager property of the express eco, then this approach may work.

1. Instead of creating a new property called "notify_target", add the owner or manager property on the form.

2. Make an assignment on the Close Change activity for the owner/manager.

3. Configure a notification on the Close Change activity. Set the target of the notification to All Assignments.

Because the activity is an end activity, the activity will not appear in the user's inbasket, but they will still get the notification.

If you are already using the owner and manager properties, then you will need to use your notify_target property and write a small method that makes an assignment on the Close Change activity.