2021年3月28日日曜日
フォルダを監視 » ファイル追加 » 通知(tost) » FileMakerスクリプトを実行
フォルダを監視
2021年3月22日月曜日
【メモ】jsonから名前(キー)を取得, json 集計等 |PowerShell
$ERROR.Clear();
$records=ConvertFrom-Json '
[
{"101":"","102":"12000","103":"12000"},{"101":"","102":"12000","103":"12000"},{"101":"","102":"12000","103":"12000"},
{"101":"","102":"12000","103":"12000"},{"101":"","102":"12000","103":"12000"},{"101":"","102":"12000","103":"12000"},
{"101":"","102":"12000","103":"12000"},{"101":"","102":"12000","103":"12000"},{"101":"","102":"12000","103":"12000","104":999}
]
'
#json 集計等
$sum=$records|Measure-Object -Property "*" -Sum ;
ConvertTo-Json $sum
#jsonから名前(キー)を取得
$records | ForEach-Object{$_| Get-Member -MemberType Properties | Select-Object -ExpandProperty Name}| Sort-Object -Unique
2021年3月15日月曜日
Power Automate Desktop のフローを「バッチファイル」「ショートカット」「FileMaker」などから実行
2022/12/01 追記
Power Automate バージョン:226.139.22312(あたり) 以降は、最下部の修正を適用してください。
Power Automate Desktop のフローを実行
コマンドプロンプト
バッチファイル
ショートカット
FileMaker などから実行するための PowerShellスクリプト
動作検証
Wiundows 10
Power Automate Desktop 2.5.39.21056
PowerShell 5.1・7.1.3
ファイルダウンロード ¥0
PAD_aid.zip
https://fm-aid.stores.jp/items/604f73e6243860052a8c9134
準備
WinAppDriver をインストール
WindowsApplicationDriver_1.2.1.msi(2021/03/15現在)をダウンロードしてインストール
KickPADFlow.ps1 の設定・確認
-windowstyle を Minimized や、Hidden に設定