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
Schedule Your Process Without Coding
Search
Shun Kosaka
June 28, 2018
690
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Schedule Your Process Without Coding
2018.06.28 Salesforce Developer Group Tokyo #18
Mass Action Schedulerの紹介
Shun Kosaka
June 28, 2018
More Decks by Shun Kosaka
See All by Shun Kosaka
プロセスビルダーの設計書を生成しよう / Document Your Process
shunkosa
0
1.9k
試して学ぶ数式項目・入力規則 / Salesforce Formulas and Validation Rules Hands on
shunkosa
3
1.5k
はじめてのCommunity Cloudデータセキュリティ / Community Cloud Data Sharing Basic
shunkosa
1
1.4k
Lightning Web ComponentでチャットのUIをカスタマイズしよう / Enhance Chat UI with LWC
shunkosa
0
1.7k
JP Salesforce SAML SSO for Beginners
shunkosa
0
1.2k
Testing Lightning Flow
shunkosa
0
820
Service Cloud Omni-Channel Basics and New Features
shunkosa
0
1k
Featured
See All Featured
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
The Curse of the Amulet
leimatthew05
3
15k
Testing 201, or: Great Expectations
jmmastey
46
8.3k
Evolving SEO for Evolving Search Engines
ryanjones
0
300
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
290
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
Being A Developer After 40
akosma
91
590k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.2k
Transcript
ノンコーディングでプロセスを スケジュール実行しよう 2018/06/28 Tokyo Salesforce Developer Group Meetup #18 Shun
Kosaka | @shunkosa | Accenture Mass Action Schedulerで宣言的開発の未来について考える
はじめに • Salesforce上で何かを定期的に実行したいシーンはよくある - データの集計やエクスポート - 外部システムとの連携 - レコードの作成や更新 など
• 解決策 - レポートのスケジュールや登録(Subscribe) - データローダーバッチ - Scheduled Apex 技術的/政治的な問題
Mass Action Scheduler • プロセスやフロー等を、宣言的にスケジュール 設定・実行できるオープンソースのパッケージ • 処理はSalesforceプラットフォーム上で完結 • 設定にはLEX
+私のドメインの有効化が必要 • Douglas Ayersさんの個人プロジェクト https://douglascayers.github.io/sfdx-mass-action-scheduler/
初期設定 1. [Create Connected App, Auth. Provider, and Named Credential]
ボタンをクリック 2. 10分程度待ってからNamed Credentialを開く - Start Authentication Flow on Save (保存時に認証フローを開始)に チェックが入っていることを確認し、保存 3. 再ログイン
4ステップでスケジューリング設定 ①レコードを選ぶ ②アクションを選ぶ ③項目マッピング ④スケジュール • プロセス - 「他のプロセスから 呼び出される」
• フロー - 画面がないフロー • クイックアクション - レコードの更新 • メールアラート、ワー クフロールール - 全て • Apex - @InvocableMethod • レポート(表形式) • リストビュー 必要な項目が含まれて いることを確認! • ①で選択したレコー ドの項目 • ②で選択したアク ションのインプット 項目 • 手動実行 • 時間/日/月 を指定 • CRON式で指定
デモ • 今日誕生日のユーザを毎日自動でお祝いする 誕生日 (カスタム日付項目) 1980/6/28 1979/6/26 1961/3/19 Tim Barr
Bond John Boyle Lauren ユーザ名 … 今日誕生日の ユーザがいる? YES NO 本人にメンション • @Tim Barr 誕生日おめでと うございます! メンションなしでChatter投稿 • 今日も一日頑張りましょう!
仕組み • Scheduled Apex内でREST API - /services/data/v43.0/actions/custom - GETでアクションの詳細を取得 -
POSTでアクションを実行 • 認証関連は Visualforce + jsforce - 初期設定画面から、接続アプリケーション, Named Credential, 認証プロバイダ を自動作成
おわりに • Mass Action Schedulerは、開発者でない人にとって救世主 • 宣言的開発ツールの”今”を知っておくと選択肢が広がる - e.g. クエリの一括実行、エラーメッセージの改善、外部サービス
- ノンコーディング万歳、ではなく、意志を持ったソリューション選定が大切 • Mass Action Schedulerは、開発者向けの学習材料としてもオススメ - 認証関連の設定, コールアウト, ReportResultsクラス, Apexバッチ/スケジュー ラ, etc... - 試すだけでなくソースコードを読んでみよう!
お知らせ • 匠に聞け!ウェブセミナー - 第1回〜新機能紹介 Service Cloud編〜 - 7/11(水) 10:00AM〜11:00AM
- Service CloudのSummer ‘18新機能をデモを交えつつご紹介します! - https://register.gotowebinar.com/register/2529034365395497474 すやまさん さだひろさん こさか Trailblazer Communityでも案内しています スピーカー