cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Allow Notification Robot to add String variable in Recipients - Variable section

Allow Notification Robot to add String variable in Recipients - Variable section

My requirement is to send an mail to external suppliers along with the Primary content and metadata of the object but unfortunately Notification Robot does not have an option to add custom variable of type String in the Recipient - Variable Section.


Would be great if system allows us to add the custom String variable (which holds the email address) to send the mail directly from notification robot. This would avoid lot of code development and saves time as well.


Regards

Mahesh

3 Comments
Garnet

I have the same use case.  We have a WTDocument that is being routed with a workflow.  In the workflow, we would like to send an email to our vendors.  How?  By typing in the vendor's email address in a previous task and storing as a workflow variable.  Later, the workflow will send an email to that address.

I haven't gotten around to setting this up and testing it yet.  I was thinking in the back of my mind that it was not possible.  So my work-around option was going to attempt to send an email using Java.  This will not be as elegant.

Regular Member

You are going with the best possible solution by leveraging Java Mail APIs. You could also use I*E webjects to send mail.  I did using Java APIs.

Unfortunately, eMail Robot in Workflows does not support sending mails to external users from String variable.

That is why I submitted this Product idea so that PTC may add this capability in future release and then everything will be OOTB with no coding effort.

Contributor

wt.mail.EMailMessage has a public method that does exactly that

It has been there since Windchill 9.1 at least 

 

public void addEmailAddress(String[] adresses)