I have a C# console application, which is triggered on Windows Task Scheduler periodically, but I need to get the "Correlation ID" of process started and pass to my app by argument, like the code below:
class Program
{
static void Main(string[] args)
{
if (args.Length > 0)
Console.WriteLine($"This is the Correlation ID start process: {args[0]}");
}
}
See here more details about the information that I need
I found the "Add argument" option in Task Scheduler Action Window, but I don't know what to put there to retrieve "Correlation ID" process.
See here the "Add argument" option above mentioned