Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
時刻表検索アプリを作る
Search
MiyakeMito
April 25, 2021
Technology
470
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
時刻表検索アプリを作る
時刻表検索アプリを作る
MiyakeMito
April 25, 2021
Transcript
24 slides
時刻表検索アプリ を作る
自己紹介 株式会社アイシーソフト https://www.icsoft.jp/ @MiTo60448639 https://qiita.com/MiyakeMito おうじゃさんといっしょMVP受賞(2021/03)
おうじゃさんといっしょ 毎週金曜日 19:00 ~ 23:00? Microsoft MVP おうじゃ(前田)さん はじめ 365
プロフェッショナルな方々で 形成されるコミュニティ https://oujasan-to-issho.connpass.com/
アジェンダ 時刻表アプリで利用する Power Automate Desiktop スクレイピング SharePoint Online リストへのデータアクセス LINE
と Power Automate 通信方法 を理解する
時刻表検索アプリ
しくみ ①スクレイピング ②追加 ③要求 ⑤応答 ④取得 時刻表 Power Automate Desktop
Power Automate
PADでの スクレイピング
テーブルのスクレイピング スクレイピングしたテーブルは、 「テキストの分割」で リスト変数として扱える。 路線ごとの停車駅一覧をスクレイ ピングする。
行数や列数が変動するテーブル
テーブルを動的にスクレイピング ① UI要素にループIndexを設定 ② 『列』や『行』の末端は『Web ページに次が含まれるか(UI要 素)』で判定 html > body
> table > tbody > tr:eq(%Loopindex1%) > td
注意 今回利用しましたYahoo路線案内は問題ありませんが (2021年4月現在) 利用規約で自動化を禁止しているサイトも存在します。 ご注意ください。
PADから SPOリストを編集
PADからSPOリストに接続 『SQL接続を開く』で接続 Provider=Microsoft.ACE.OLEDB.12.0;WSS; IMEX=0;RetrieveIds=Yes; DATABASE=[サイトURL];LIST=[リストID]; 『SQL接続を閉じる』で切断
PADからSPOリストデータを編集 『SQL ステートメントの実行』で SQLによるデータ操作が可能 ・取得 SELECT ・追加 INSERT INTO ・更新
UPDATE ・削除 DELETE FROM SQLの中に変数が指定可能 SELECT station,arrival,departure FROM List WHERE station = '%NewVar%'
LINEと POWER AUTOMATE の連携
LINEの設定 ① プロバイダーの作成 ② チャンネルの作成 Messaging APIの設定
Power Automate の設定 ① LINEからの受信 ② LINEからのメッセージを取得 ③ LINEへの送信 Flex
Message を利用すると リッチなメッセージが送れる
DEMOします
注意!! LINEとの通信部分は 有償ライセンスが必要です 期限なし無償の学習/開発用(個人向けプラン)がおすすめ Power Apps Community Plan https://powerapps.microsoft.com/ja-jp
フローの説明
フローの説明 時間が残っていれば・・・
まとめ PADのスクレイピングとSPOリストの編集 LINEとPower Automateとの通信 で 素敵アプリを作成いただけると嬉しいです
本日の内容 ▪ LINEから「ふだん使う路線の時刻表検索」を、Power Automate Desktop と Power Automate と Sharepoint
Online で作る https://qiita.com/MiyakeMito/private/fb07c535d1f796a97929 ▪ Power Automate DesktopでWebのUI要素有無を判断すると何かと 便利! https://qiita.com/MiyakeMito/items/f0bb3919dc219582d76d ▪ Power Automate Desktop で SharePoint Onlineリストのデータを ダイレクトに取得や操作する方法 https://qiita.com/MiyakeMito/items/4c9408744d7ed3486770 ▪ Power Automate と LINE で通信する方法 https://qiita.com/MiyakeMito/items/fb07c535d1f796a97929
ありがとうございました
More Decks by MiyakeMito
See All by MiyakeMito
Power Automateアップデート情報
miyakemito
0
440
マルチステージとAI承認について
miyakemito
1
250
Copilot Studioについて
miyakemito
9
10k
Dataverseの検索列について
miyakemito
2
2.3k
AI Builder について
miyakemito
3
1.3k
Microsoft Copilot Studio についてざっくり説明
miyakemito
2
2k
Power Automateのデータ操作(Data Operation)について (Ver.モダンデザイナー)
miyakemito
5
4.2k
JSON攻略法.pdf
miyakemito
13
7.5k
ガンダムBotを1分でつくってみせろよ
miyakemito
1
970
Other Decks in Technology
See All in Technology
売り切りの先へ ~ IoTを組み込んだ製品が、事業を伸ばす理由と始め方
soracom
PRO
0
130
リリースしたで終わらない。 観測できるフロントエンド開発
yamakenji24
4
2k
不具合データを用いたプロダクトコードの弱点可視化
tarappo
6
380
PMの私の 最近のAgent Skills活用法
haru860
0
120
現場に渡し、構造で守る AI エージェントを活用したセルフサーブのデータ基盤の運用
legalontechnologies
PRO
0
190
AIエージェントの認証がまとめて進化! ~pre:Inventで来た3つのアップデート~
minorun365
PRO
2
300
Welcome JXL!
dynamis
1
1.4k
コーディングできない僕にBobが舞い降りた
shumpei3
0
290
AWS Well-Arhitected Frameworkセキュリティの柱 について
miu_crescent
PRO
2
280
本の挿絵に困ったから挿絵メーカーを自作した
yoshimura_datam
1
140
AWS初心者のAIエンジニアが、 論文サーベイエージェントを AgentCoreで動かしてみた
dirard12
0
110
テスト自動化の先、テスト自律化に向けて
mineo_matsuya
4
1.6k
Featured
See All Featured
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.3k
Building Applications with DynamoDB
mza
96
7.3k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
650
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
1
250
Prompt Engineering for Job Search
mfonobong
0
620
The Curious Case for Waylosing
cassininazir
1
630
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
3k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Mind Mapping
helmedeiros
1
460
How to build a perfect <img>
jonoalderson
1
6.3k
WCS-LA-2024
lcolladotor
0
1k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
49k