I have a parameter for email address in my job sequencer.
I want to use this parameter in a NotificationActivity (email).
What special caracter do I have to enclose my parameter with in the senders and recipient email address fields ?
Probably easy, but I didn't find it in the doc/help.
Thanks.
NotificationActivity : parameter for email address
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 3593
- Joined: Thu Jan 23, 2003 5:25 pm
- Location: Australia, Melbourne
- Contact:
I don't think it accepts any job parameters anywhere in this stage! It turns all of the data entry fields into string fields. I compiled a job and looked at the readonly job control code:
p$2$Parameters = "To:":'MyRecipient':"nFrom:":'MyAddress':"nSubject:":'MySubject':"nServer:":'MyServerName':"nBody:":'Excuse me #SupportPerson#, your job has finished.':"n":rpt$all
Call 'DSSendMail'(r$2, p$2$Parameters)
All the fields were enclosed in single inverted commas so there is no way a job parameter will be located and switched. If you want to use job parameters for email I suggest you send your email using a routine and forget about the email stage. As you can see from the generated job control code the DSSendMail command is easy to use. Have a look at your Job Control code for your sequence job, transfer the send mail code to a routine and turn the email settings into passed in routine parameters.
Vincent McBurney
Data Integration Services
www.intramatix.com
p$2$Parameters = "To:":'MyRecipient':"nFrom:":'MyAddress':"nSubject:":'MySubject':"nServer:":'MyServerName':"nBody:":'Excuse me #SupportPerson#, your job has finished.':"n":rpt$all
Call 'DSSendMail'(r$2, p$2$Parameters)
All the fields were enclosed in single inverted commas so there is no way a job parameter will be located and switched. If you want to use job parameters for email I suggest you send your email using a routine and forget about the email stage. As you can see from the generated job control code the DSSendMail command is easy to use. Have a look at your Job Control code for your sequence job, transfer the send mail code to a routine and turn the email settings into passed in routine parameters.
Vincent McBurney
Data Integration Services
www.intramatix.com
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 3593
- Joined: Thu Jan 23, 2003 5:25 pm
- Location: Australia, Melbourne
- Contact:
It wasn't till after my post that I saw your reply. It's a Saturday, time I stopped reading this forum and went out into the backyard to play.
Vincent McBurney
Data Integration Services
www.intramatix.com
Vincent McBurney
Data Integration Services
www.intramatix.com
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: