This project has moved. For the latest updates, please go here.

[Solved] Edit Task

Topics: Examples
Mar 23, 2015 at 8:41 PM
How to get the hum trigger replay value , when recursion for weekly?
Coordinator
Mar 23, 2015 at 11:52 PM
Can you clarify please? I'm not sure what a "hum trigger" is nor a "replay value" nor "recursion for weekly".
Mar 24, 2015 at 12:05 AM
Descupe Google Translate was not as helpful this time .

Basically what I need is to get the value of the highlighted field in the image http://i.imgur.com/vYfxKG5.jpg

I tried using the command "MyTask.Definition.Triggers" and saw that the values ​​are stored in it but could not find the property that show me this value.
Coordinator
Mar 24, 2015 at 8:36 PM
You are looking for a WeeklyTrigger (see Documentation here) where you will set the DaysOfWeek property for all the days of the week needed and the WeeksInterval property for the interval.
Mar 25, 2015 at 1:47 AM
Setting this value I found in the documentation , but I need is go the other way .
How to rebuild value of a task already created ?
Coordinator
Mar 25, 2015 at 2:58 AM
Task t = taskService.GetTask("MyTaskName");
// Assume there is only a single trigger
WeeklyTrigger wt = t.TaskDefinition.Triggers[0] as WeeklyTrigger;
if (wt != null)
   return wt.WeeksInterval;
Marked as answer by pcsiquiero on 3/24/2015 at 7:04 PM
Mar 25, 2015 at 3:04 AM
That's it!
You helped me a lot . Thank U.