Skip to main content
TDX, the developer conference for the AI agent era is happening now. Watch live on Salesforce+ for exclusive digital content, a revolutionary keynote, and more.

本番組織へのカスタマイズされたプロジェクトのインストール

メモ

この単元の手順を完了するまでの予想時間は推定にすぎません。システム設定とネットワーク速度に応じて、実際のインストール時間の方が長くなることがあります。

学習の目的

  • カスタマイズをインストールする組織に CulumusCI を接続する。
  • カスタマイズを本番組織にインストールする。
メモ

メモ

日本語で受講されている方へ
Challenge は日本語の Trailhead Playground で開始し、かっこ内の翻訳を参照しながら進めていってください。Challenge での評価は英語データを対象に行われるため、英語の値のみをコピーして貼り付けるようにしてください。日本語の組織で Challenge が不合格だった場合は、(1) この手順に従って [Locale (地域)] を [United States (米国)] に切り替え、(2) [Language (言語)] を [English (英語)] に切り替えてから、(3) [Check Challenge (Challenge を確認)] ボタンをクリックしてみることをお勧めします。

翻訳版 Trailhead を活用する方法の詳細は、自分の言語の Trailhead バッジを参照してください。

Maddie のリポジトリには、彼女のフードバンク組織を設定するために必要なすべてのメタデータとオートメーションが保存されています。では、実際にこれをどうやって本番組織に取り込むのでしょうか?

これにもまた CumulusCI を使用します。スクラッチ組織でのフローの実行に加えて、CumulusCI は永続的な組織 (Sandbox または本番組織) に接続して、そこでフローを実行することができます。QA スクラッチ組織でテスト済みの同じフローを Sandbox にリリースして、本番組織ですべてのユーザーにリリースする前の最終テストを行うことができます。

CumulusCI を永続的な組織に接続する

「CumulusCI を使用した管理パッケージ」で Tasha が新しい Food Bank パッケージをテストしたときと同じように、Maddie は CumulusCI を永続的な組織に接続する必要があります。新しいパッケージをまず Sandbox でテストするのがベストプラクティスですが、この例ではそれを省略して Maddie の本番組織に接続します。 

手順を読んでから下のハンズオン Challenge を実行してください。  Maddie は CumulusCI を本番組織に接続します。ハンズオン Challenge では、CumulusCI を Trailhead Playground に接続します。

  1. GitHub Desktop で、[Current Repository (現在のリポジトリ)]Food-Bank-Implementation に設定されていることを確認します。
  2. [Repository (リポジトリ)] → [Open in Visual Studio Code (Visual Studio Code で開く)] を選択して、このリポジトリを開きます。
  3. cci org connect production コマンドを入力して CumulusCI を本番組織に接続します。
  4. Salesforce ログインページ (https://login.salesforce.com) が開きます。Maddie は組織のユーザー名とパスワードを入力してログインします。
  5. [許可] ボタンをクリックして、CumulusCI が組織に接続することを承認します。
  6. ページに「Congratulations! Your authentication succeeded」 (おめでとうございます! 認証が成功しました) というメッセージが表示されたら、正常に接続できたことがわかります。
  7. Maddie は VS Code ターミナルに戻り、cci org list コマンドを入力します。

Connected Orgs (接続組織) のリストに彼女の本番組織が表示されます。

永続的な組織にリリースする

CumulusCI が本番組織に接続されたので、Maddie は dev_org フローを実行して Food-Bank-Implementation プロジェクトを本番組織にリリースします。

Maddie は次の手順を実行します。

  1. GitHub Desktop で、[Current Repository (現在のリポジトリ)]Food-Bank-Implementation に設定されていることを確認します。
  2. [Repository (リポジトリ)] → [Open in Visual Studio Code (Visual Studio Code で開く)] を選択して、このリポジトリを開きます。
  3. Food-Bank-Implementation リポジトリに含まれているカスタマイズをインストールします。VS Code ターミナルで、cci flow run dev_org --org production コマンドを入力します。

これで、Hunger Northeast の支援者と食料品配送を追跡し、資金提供者に団体が地元食材を利用していることを報告するために Salesforce を活用する準備が整いました。Maddie と同僚が支援者や理事会に団体の効果を説明する必要があるたびに、クリップボードや付箋を使い、書類の山を選り分けていたのはもはや過去のことです。

Maddie、Tasha、Isabel の 3 人は協力してフードバンク向けのオープンソースプロジェクトを開始しました。これは、他の多数のフードバンクからコントリビューションを集め、世界中の数十、数百、あるいは数千もの食料安全保障団体に有益なプロジェクトの始まりです。

あなたが目指していることは Tasha、Maddie、Isabel とは異なるかもしれませんが、あなたの熱意と CumulusCI の新しい知識をもってすれば、これらの概念とツールを独自のオープンソースプロジェクトに応用することができるでしょう。コラボレーションの新しい世界への扉が開きました。あなたはどのように活用しますか?

Tasha、Maddie、Isabel がピクニックテーブルに座りアイスクリームを食べています。

リソース

ハンズオン Challenge

+500 ポイント

準備を始めましょう

この 単元 は各自のハンズオン組織で実行します。[起動] をクリックして開始するか、組織の名前をクリックして別の組織を選びます。

あなたの Challenge

Use CumulusCI to Deploy the Food-Bank-Implementation Project to Your Trailhead Playground
Connect your Trailhead Playground to CumulusCI and install the Food Bank app as well as additional customizations built for Hunger Northeast.

Prework:
The work you do here builds on the concepts and work done in previous modules. Before you complete this challenge, make sure you complete the same steps Tasha did throughout the following modules, including the Hands-On Challenge in Module 2:
  • Module 2: CumulusCI Setup
  • Module 3: Community Project Development with CumulusCI
  • Module 4: Data Management with CumulusCI
  • Module 5: CumulusCI for Managed Packages
  • Units 1 and 2 in this module.
Challenge Instructions
Complete the following steps to connect the Food-Bank-Implementation project to your Trailhead Playground:
  1. In GitHub Desktop, make sure Current Repository is set to Food-Bank-Implementation
  2. Open this repository by choosing Repository → Open in Visual Studio Code.
  3. Connect CumulusCI to your Trailhead Playground by typing this command: cci org connect playground
  4. This opens the Salesforce login page, https://login.salesforce.com. Enter the username and password for your Trailhead Playground and finish logging in. (If you aren’t sure how to get a username and password for your Trailhead Playground, see the Get Your Trailhead Playground Username and Password module.)
  5. Click the Allow button to authorize CumulusCI to connect to your org.
  6. You should see a blank page with the message “Congratulations! Your authentication succeeded.”
  7. Return to the VS Code Terminal, type in this command: cci org list
You should see the Playground org in the list of Connected Orgs.

Deploy to a Persistent Org
  1. In GitHub Desktop, make sure Current Repository is set to Food-Bank-Implementation
  2. Open this repository by choosing Repository → Open in Visual Studio Code.
  3. Install the customizations included in the Food-Bank-Implementation repository. In VS Code Terminal, type in this command: cci flow run dev_org --org playground
The flow will take 10-15 minutes to run. When it’s done, go to Installed Packages in your Trailhead Playground and confirm that Nonprofit Success Pack and the Food Bank managed package are installed.
Salesforce ヘルプで Trailhead のフィードバックを共有してください。

Trailhead についての感想をお聞かせください。[Salesforce ヘルプ] サイトから新しいフィードバックフォームにいつでもアクセスできるようになりました。

詳細はこちら フィードバックの共有に進む