Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
BatchState および BatchRouting のエントリ ポイント、GET リクエスト、PowerShell の CSV スクリプトを使用して、ABBYY FlexiCapture から Business Process Reporting データを取得します。
/Reporting/BatchState/List /Reporting/BatchState/File/<filename> /Reporting/BatchState/View /Reporting/BatchRouting/List /Reporting/BatchRouting/File/<filename> /Reporting/BatchRouting/View
http://localhost/Flexicapture12/Server/Reporting/BatchState/View
http://localhost/Flexicapture12/Server/FCAuth/Reporting/BatchState/View
http://localhost/Flexicapture12/Server/FCAuth/Reporting/BatchState/View?Tenant=myTenant
http://localhost/Flexicapture12/Server/FCAuth/Reporting/BatchState/View http://localhost/Flexicapture12/Server/FCAuth/Reporting/BatchRouting/View
$serviceHost = 'http://localhost' #ホスト $user=$null #ユーザー $pass=$null #パスワード $tenant=$null #テナント名 $baseUrl = $serviceHost if( $user ) { $baseUrl += '/flexicapture12/server/FCAuth/Reporting/' } else { $baseUrl += '/flexicapture12/server/Reporting/' }function createBasicCredentials() #パスワードを暗号化された文字列に変換します { $secpasswd = ConvertTo-SecureString $pass -AsPlainText -Force return New-Object System.Management.Automation.PSCredential($user, $secpasswd) } function getListFromUrl( $url ) #入力された資格情報を使用して認証します { if( $tenant ) { $url = $url + '?Tenant=' + [uri]::EscapeUriString( $tenant ); } if( $user ) { $creds = createBasicCredentials -user $user -pass $pass $response = Invoke-WebRequest -Credential $creds -Uri $url; } else { $response = Invoke-WebRequest -UseDefaultCredentials -Uri $url; } $fileList = $response.ToString() | ConvertFrom-Json; return $fileList.reportFiles; } function getBatchStateFileList() #BatchState ファイルの一覧を要求します { $url = $baseUrl + 'BatchState/List'; return getListFromUrl -url $url } function getBatchRoutingFileList() #BatchRouting ファイルの一覧を要求します { $url = $baseUrl + 'BatchRouting/List'; return getListFromUrl -url $url } function downloadFile ( $fileName, $outDir ) #ファイルをダウンロードします { $url = $baseUrl + 'BatchState/File/' + [uri]::EscapeUriString( $fileName ); if( $tenant ) { $url = $url + '?Tenant=' + [uri]::EscapeUriString( $tenant ); } $outPath = Join-Path -Path $outDir -ChildPath $fileName if( $user ) { $creds = createBasicCredentials -user $user -pass $pass $response = Invoke-WebRequest -Credential $creds -Uri $url; $response = Invoke-WebRequest -Credential $creds -Uri $url -OutFile $outPath } else { $response = Invoke-WebRequest -UseDefaultCredentials -Uri $url -OutFile $outPath } } $files = getBatchStateFileList; #BatchState ファイルをカレントディレクトリにダウンロードします foreach ($file in $files) { downloadFile -fileName $file -outDir '.\' } $files = getBatchRoutingFileList; #BatchRouting ファイルをカレントディレクトリにダウンロードします foreach ($file in $files) { downloadFile -fileName $file -outDir '.\' }
このページは役に立ちましたか?