Skip to content

Commit aa02b98

Browse files
committed
Initial commit
0 parents  commit aa02b98

8 files changed

+135
-0
lines changed

.forceignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status
2+
# More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm
3+
#
4+
5+
package.xml
6+
7+
# LWC configuration files
8+
**/jsconfig.json
9+
**/.eslintrc.json
10+
11+
# LWC Jest
12+
**/__tests__/**

.gitignore

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This file is used for Git repositories to specify intentionally untracked files that Git should ignore.
2+
# If you are not using git, you can delete this file. For more information see: https://git-scm.com/docs/gitignore
3+
# For useful gitignore templates see: https://github.com/github/gitignore
4+
5+
# Salesforce cache
6+
.sfdx/
7+
.localdevserver/
8+
9+
# VS Code
10+
.vscode
11+
12+
# Logs
13+
logs
14+
*.log
15+
npm-debug.log*
16+
yarn-debug.log*
17+
yarn-error.log*
18+
19+
# Dependency directories
20+
node_modules/
21+
22+
# Eslint cache
23+
.eslintcache
24+
25+
# MacOS system files
26+
.DS_Store
27+
28+
# Windows system files
29+
Thumbs.db
30+
ehthumbs.db
31+
[Dd]esktop.ini
32+
$RECYCLE.BIN/
33+
34+
scripts/

.prettierignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# List files or directories below to ignore them when running prettier
2+
# More information: https://prettier.io/docs/en/ignore.html
3+
#
4+
5+
.sfdx
6+
.localdevserver

.prettierrc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"trailingComma": "none",
3+
"overrides": [
4+
{
5+
"files": "**/lwc/**/*.html",
6+
"options": { "parser": "lwc" }
7+
},
8+
{
9+
"files": "*.{cmp,page,component}",
10+
"options": { "parser": "html" }
11+
}
12+
]
13+
}

README.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Lightning Flow Recipes
2+
インストールしてすぐに使用できる Lightning フローのサンプル集です。インストールしたフローは編集および別名で保存することができます。
3+
4+
## 使用方法
5+
以下からパッケージをインストールしてください。
6+
7+
* Sandbox 組織
8+
* https://test.salesforce.com/packaging/installPackage.apexp?p0=04tf4000004EyqsAAC
9+
* Developer Edition 組織
10+
* https://login.salesforce.com/packaging/installPackage.apexp?p0=04tf4000004EyqsAAC
11+
* 新しいTrailhead Playground 組織
12+
* アプリケーションランチャーから、[Playground Starter] アプリケーションを起動し、[パッケージのインストール] タブをクリックします。インストール ID に、`04tf4000004EyqsAAC` を入力し、[インストール] ボタンをクリックしてください。
13+
14+
## パッケージに含まれるフロー
15+
16+
### 画面フロー
17+
18+
|フロー名|フローのAPI名|説明|
19+
|---|---|---|
20+
|取引先の作成画面|LFR_AccountCreateScreen|取引先を新規作成するシンプルな画面フローです。画面要素の基本的な使用方法や画面コンポーネントの動的な表示切替、レコードの作成要素の使用方法を理解します。|
21+
|リードの更新画面|LFR_LeadUpdateScreen|リードを更新するシンプルな画面フローです。開いているレコードのIDを取得する方法や、レコード変数を用いてレコードを更新する方法、選択リスト値のデフォルト値として現在の値を取得する方法を理解します。|
22+
|取引先と商談を1度に作成する画面|LFR_AccountOpportunityCreateScreen|取引先と商談を1度に作成する画面フローです。親-子関係のオブジェクトのレコードを作成する方法を理解します。|
23+
|商談と取引先責任者ロールを1度に作成する画面|LFR_OpportunityAndContactRoleCreateScreen|商談とその取引先責任者のロールを1度に作成する画面フローです。ルックアップ要素の使い方、親-子オブジェクトのレコードを作成する方法、固定のサイズのレコードコレクション変数を用いたレコードの作成方法を理解します。|
24+
|ToDoとファイルの登録画面|LFR_TaskWithFileCreateScreen|ToDo登録後に続けてファイルをアップロードできる画面フローです。[ファイルのアップロード] 画面コンポーネントの使い方を理解します。|
25+
|取引先責任者の検索・更新画面|LFR_SearchAndUpdateContacts|取引先責任者を検索し、ヒットしたレコードを一括更新する画面フローです。画面要素に入力チェックを適用する方法や、複数選択リストの選択結果をコレクション変数に保存する方法を理解します。|
26+
27+
### 自動起動フロー
28+
29+
30+
## 補足
31+
* [Help に記載のベストプラクティス](https://help.salesforce.com/articleView?id=flow_prep_bestpractices.htm&type=5) に可能な限り従ってください。
32+
* 実際にフローを業務で使用する際は、各要素の API 参照名に命名規則を定めましょう。旧 Cloud Flow Designer (昔のフロービルダー) から Lightning フロービルダーに変わり、要素の検索はしやすくなりましたが、一定のルールで要素を作成しているとメンテナンスがしやすいフローになります。
33+
34+
### 参考リンク
35+
*
36+
*
37+
38+
## フィードバック
39+
こんなフローのサンプルが見たい、こんなフローを作ったので入れて欲しいといったご要望、または不具合の報告などありましたら [Issue](https://github.com/shunkosa/lightning-flow-recipes-jp/issues/new)[Twitter](https://www.twitter.com/shunkosa) からお願いします。

config/project-scratch-def.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"orgName": "Demo Company",
3+
"edition": "Developer",
4+
"hasSampleData": true,
5+
"features": []
6+
}

get_description.rb

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require 'rexml/document'
2+
3+
Dir.glob('./force-app/main/default/flows/*.xml') do |f|
4+
doc = REXML::Document.new(File.new(f))
5+
puts "|#{doc.elements['Flow/label'].text.split(' ')[2]}|#{f.split('flows/')[1].split('.')[0]}|#{doc.elements['Flow/description'].text}|"
6+
end
7+

sfdx-project.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"packageDirectories": [
3+
{
4+
"path": "force-app",
5+
"default": true,
6+
"package": "lightning-flow-recipes",
7+
"versionName": "ver 0.1",
8+
"versionNumber": "0.1.0.NEXT"
9+
}
10+
],
11+
"namespace": "",
12+
"sfdcLoginUrl": "https://login.salesforce.com",
13+
"sourceApiVersion": "48.0",
14+
"packageAliases": {
15+
"lightning-flow-recipes": "0Hof40000004CFkCAM",
16+
"[email protected]": "04tf4000004EyqsAAC"
17+
}
18+
}

0 commit comments

Comments
 (0)