SlideShare a Scribd company logo
1 of 12
Power AutomateとOpenBDを
使った事務用図書希望フォーム
Code4Lib JAPAN 2022カンファレンス ライトニングトーク
東京大学情報システム部・前田朗
ノーコードに手を出してみる
• 今年はもうがっつりコードを書いたので
• 日本語専門用語抽出Node.jsライブラリ termextact-kuromojijs
• http://gensen.dl.itc.u-tokyo.ac.jp/termextract-kuromojijs/
→ ノーコードでお手軽なツールつくりにチャレンジしました
• MicrosoftのPower Automateにしてみました
• 東京大学ではMicrosoft Office365のライセンスがあり仕事で使える
• 「Power AutomateではじめるノーコードiPaaS開発入門」(ISBN
9784899775232)に、Power AutomateからGoogle Books APIの呼び
出しについて書かれていたので、これは使えるかもと
ノーコードで図書館系Web APIを活用
• プログラムを書かない(ノーコード)で、楽したい
• 東京大学はMicrosoft Office365のライセンスがあるので、Power
AutomateとOffice365のフォームを組み合わせて使ってみる
• 図書館系で何か活用を考えてみる
• 今回は、事務用図書希望申請用のフォームを作ってみる
• 図書の詳細情報入手は、国内の新刊をカバーし価格や内容記述を含む
OpenDBのWeb APIにしてみた
• 実務での使用
• 試しにチーム内で使用中
• 引継ぎは考えていない(さした効率化でもないので)
フォーム(Office 365)
• チームの職員のみに公開
• 書誌情報はISBNを入れ
るだけ(OpenBDのデー
タで詳細情報が補完され
る)
• 購入希望理由は自由記述
1.購入希望者の氏名を記載てください
2.購入したい書籍のISBNを入力ください
3.購入したい書籍の希望理由を記載ください
送信
結果(Excelオンラインに出力)
• Excelオンライン
(チーム職員のみ
アクセス可)に、
投稿結果が記録さ
れる
• 記録に失敗した場
合は、直に記載
• フォームを使わず
直に記載でもよい
ことにした
列名 説明
タイトル OpenDBからISBNをキーにデータを取得
著者
出版社
価格
ノート
ISBN フォームの入力より
希望日は処理日から自動取得
希望日
希望理由
希望者
購入状況 管理者が発注・受け入れ状況を記載
つくりかた
Power Automateの使い方は、メニューから使いたいアクション(処理)を選択し、
パラメータを設定し、順につなげるだけです。
以降の説明は多少「はしょって」います。
フロー(前処理)
新しい応答が送信されるとき
応答の詳細を取得する
現在の時刻
タイムゾーンの変換
変数を初期化する
条件
指定のOfficeフォームで
入力があった場合、処理
を開始し入力を取得する
処理日を日本時間で取得
する
ISBNの先頭が’978’以外の場合に
処理を中断する(チーム内利用
なのでチェックは緩い)
ISBNチェックで「はい」の場合
URLからのファイルのアップロード
パスによるファイルコンテンツの取得
変数の設定
JSONの解析
Web APIの結果を一時ファ
イルに保存する(ユーザ数
が少ないのでまずバッティ
ングしない)。
その上で変数に取り込む。
( premium版だと直に変数
に取り込めるらしい)
OpenDBのJSONを解析する。
失敗した場合は処理を終了
する
解析結果をExcelオンラインに追記
Apply to each
表に行を追加
タイトル
著者
出版社
価格
ノート
ISBN
希望日
希望理由
希望者
購入状況
• Apply to eachは繰り返し処理
• 基本的にJSON解析で自動生成
される変数を各フィールドに割
り当てるだけ
• 「価格」と「ノート」だけは
JSONパスを直に指定
• 「購入希望」はここでは指定し
ない
つくってみて
個人的な感想
• 事務用図書希望のフォームについて
• 書籍情報の入力(価格や内容記述を含む)がISBNだけで済むのは
ちょっと楽
• 不足はあるがチーム内限定利用であればよいかと
• 引継ぎはちょっと面倒かも
• Power Automateについて
• コードを書かなくてよいのは楽かも
• といっても一部JSONパスの直指定はしましたが…
• プログラミング的思考は役に立つ
• シンクライアント環境でも使えるのはよい
• 複雑なことをさせるのはきつそう
ご清聴ありがとうございました

More Related Content

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn
 

Featured (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

Power AutomateとOpenBDを使った事務用図書希望フォーム.pptx