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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

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

4 Comments
BenPerry
13-Aquamarine

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.

mgupta-2
6-Contributor

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.

HerwigSchwarz
11-Garnet

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)

 

olivierlp
Community Manager
Status changed to: Archived

Hello,

We are archiving your idea as part of a general review. This action is based on the age of your idea and the total number of votes received, as per this announcement.

You can always post a new idea with all the details required in the form.

Thank you for your participation.