Qlik Community

QlikView Deployment

Discussion Board for collaboration related to QlikView Deployment.

sriram1993
New Contributor II

Setup Triggers Using Powershell

Hello Everyone ,

Do anyone of you know how to setup triggers for a task using power shell ?

Kindly let me know .

Thanks ,

Venkat

Labels (2)
5 Replies
sriram1993
New Contributor II

Re: Setup Triggers Using Powershell

Any inputs ?

Re: Setup Triggers Using Powershell

sriram1993
New Contributor II

Re: Setup Triggers Using Powershell

Yes ,these are not part of my requirement

mmpas4887
New Contributor III

Re: Setup Triggers Using Powershell

I use QMSedx in a bat file to execute a task. The command looks like this

\\QVroot\scriptfolder\QMSEDX -task=%TaskName% -password=%PASSWORD% -qms=%QMS%

The task is an external program created from the SYSTEM > Supporting Tasks Tab in th eQMC

evan_kurowski
Valued Contributor

Re: Setup Triggers Using Powershell

Love Powershell!!! Powershell & QlikView Bff's

# This sequence loops through development environments and copies source files from a local machine to the QMC publishing repository, then initiates reloads on each environment via EDX

$QV_Servers = 'PRODBOX','UATBOX','DEVBOX' ##Add boxes as needed

$QV_Servers | %{

  ROBOCOPY "\\$env:COMPUTERNAME\$MyDataSourcePath" "\\$_.$MyDataDestinationPath" /MIR;

  write-host `nPerforming an EDX task on $_

  \\$StaticPublisherEDXPath\QMSEDX.exe -task="_EDX Reload $MyTaskName" -qms="$(-join('http://',$_,':4799/QMS/Service'))" -password="$EDXPassword"

}