Skip to main content

Scheduling Processes/Reports without the Logi Scheduler using Windows Task Scheduler and Powershell

Comments

2 comments

  • Paul Smith

    Refer to https://documentation.logianalytics.com/logiinfov12/content/process-tasks.htm#Calling 
    if you want to add Parameters to your task call:

    Calling a Task from a URL

    You can also call a process task directly from a URL, using the following syntax:

    http://www.myReportSite.com/myLogiApp/rdProcess.aspx?rdProcess=myTasks&rdTaskID=taskUpdate&myParam=1

    where rdProcess and rdTaskID are required and additional request variables, such as myParam, are optional.



    1
  • Paul Smith

    You can even do it when you are using Logi's SecureKey for embedded reports.
    Here's the Powershell script for doing that (also without opening browser):
    $processURL = "http://appurl.com/Analytics/rdProcess.aspx?rdProcess=EmailProcess&rdTaskID=tskEmailRpt"
    #Get Logi SecureKey
    $webresponse = Invoke-WebRequest -Uri "http://appurl.com/Analytics/rdTemplate/rdGetSecureKey.aspx?Username=domain\username&ClientBrowserAddress=10.20.xx.xx"
    $token = $webresponse.Content
    #Write-Host ($token)
    $newUrl = $processURL + "&rdSecureKey=" + $token
    #Write-Host ($newUrl)
    Invoke-WebRequest -Uri "$newUrl"

    1

Please sign in to leave a comment.