Community
This field is required.
Only these extensions are allowed(.jpg, .JPG, .jpeg, .JPEG, .gif, .GIF, .png, .PNG)
Tags cannot contain the characters ' /, \\, #, ?, or ; >,< '
Only these extensions are allowed(.zip,.ZIP,.pdf,.PDF,.qvf,.QVF,.qvw,.QVW)
If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.
Hi All,
I have come-up with below script, however it is keep loading but nit giving me any results.
Can you please let me know if anything is missing in my script.
Script:
function GetXrfKey() {
$alphabet = $Null; For ($a=97;$a -le 122;$a++) { $alphabet += ,[char][byte]$a }
For ($loop=1; $loop -le 16; $loop++) {
$key += ($alphabet | Get-Random)
}
return $key
$xrfKey = GetXrfKey
$cert=Get-ChildItem -Path "cert:\CurrentUser\My" | where {$_.Subject -like "*QlikClient*"}
$url="http://127.0.0.1:4747/qrs/app/about?xrefkey=" + $xrfKey
$hrds=@{"x-qlik-xrfkey"=$xrfKey
"X-Qlik-User"='UserDirectory=DESKTOP-A7R270Q;UserId=GIS-11'}
Invoke-RestMethod -Method "get" -Uri $url -CertificateThumbprint $cert.Thumbprint -Headers $hrds