I'd like to 'insert' a variable into an email from an external application, so I created a job variable {JOB(Active|Variable|specialmessage)}
I'd like to update it programmatically before running the job, tried this:
using (Client c = new Client())
{
try
{
using (Server s = c.Connect(conn, true))
{
var job = s.Jobs.GetJobByName(jobName);
s.Jobs.JobVariables.AddUpdate("{JOB(Active|ID)}", "specialmessage", "let's see if this works");
JobRunResultClass jrsc = s.Jobs.Run(job.Id, false, false, false, string.Empty, false, string.Empty, null, false);
but that doesn't seem to do the trick. Am I missing something?
Edited by moderator
2017-03-27T08:09:17Z
|
Reason: Not specified