2015-03-01から1ヶ月間の記事一覧
JavaScriptからSalesforce APIでクエリを実行した場合、一度に取得できるレコードは2000件までですが、queryMoreメソッドを利用することで続きのレコードを取得できます。 Salesforce Developers 本来はisDone()で次のレコードが存在するかを判定してqueryMo…
Apexで大量データを表示するようなページを開発する際に気をつけなければならないのがViewStateの制限です。Visualforceでは最大表示サイズの制限が決められているため、通常気にする必要はありませんが、表示する項目が多い場合は、このエラーが発生する可…
Getting Started with Visualforce Visualforceとは何かそれがために使われているかを説明 Visualforceが使用できる3つ以上の場所 Creating & Editing Visualforce Pages Using Simple Variables and Formulas Using Standard Controllers Displaying Record…
コンパクトレイアウトはSalesforce1モバイルのヘッダー部分に重要な項目の値を表示するための設定です。設定画面の各オブジェクト毎のコンパクトレイアウトから設定できます。 設定画面では表示ラベルと表示項目の設定を行います。 コンパクトレイアウト作成…
Getting Started with the Salesforce1 Mobile App Customizing Navigation Customizing Compact Layouts Creating Global Publisher Actions Creating Object-Specific Publisher Actions Getting Started with the Salesforce1 Mobile App Salesforce1Mobi…
VisualforceのCSSカスタマイズを行うとき、標準スタイルの影響でうまく反映されない場面に遭遇することがあります。いくつかのケースと対応方法を調べてみました。 背景色の変更 Visualforceページの背景色は通常白色となっています。 背景色を変更する方法…
Trailheadの『Change Management』をやってみました。 Deploying Changes Safely Developing and Testing with Sandbox Deploying from Sandbox with Change Sets Managing Change with a Governance Framework Deploying Changes Safely 本番組織内を変更す…
Lightning NamespacerはHeroku上で公開されている便利アプリです。対象CSSのURLと追加したいNamespaceを指定してSubmitボタンをクリックすると追加後のCSSを取得することができます。 https://bootstrap-namespacer.herokuapp.com/ 追加後のCSSがこちらです…
Trailheadの『Apex Basics & Database』をやってみました。 Getting Started with Apex Using sObjects Manipulating Records with DML Writing SOQL Queries Writing SOSL Queries Getting Started with Apex Apexプログラミング言語の主要な機能 Anonymous…
New Trust SiteのPreview版が公開されていました。モダンなデザインでいい感じです。レスポンシブデザインでモバイルからでも見やすいサイトになっていました。 https://trust.salesforce.com/trust/new/ Preview版にアクセスするにはtrust.salesforce.comの…
Trailheadの『Data Modeling』をやってみました。 Understanding Custom & Standard Objects Creating Custom Objects and Fields Creating Object Relationships Working with Schema Builder Understanding Custom & Standard Objects アプリ開発のためのF…
Trailheadの『UI Customization』をやってみました。 Customizing Navigation, Buttons, and Links Modifying Page Layouts Creating List Views Customizing Navigation, Buttons, and Links 簡単なナビゲーションのためのタブをカスタマイズ カスタムボタ…
Trailhead『Data Management』をやってみました。 Importing Data Exporting Data Importing Data Salesforceのにデータをインポートするためのさまざまなオプションを比較 インポート用データの準備に必要な手順をリスト データインポートウィザードを使用…
Trailhead『Apex Testing』をやってみました。 Getting Started with Apex Unit Tests Testing Apex Triggers Creating Test Data for Apex Tests Getting Started with Apex Unit Tests Apexのユニットテストの主な利点を説明 テストメソッドを持つクラスを…
Trailhead『Apex Triggers』をやってみました。 Getting Started with Apex Triggers Bulk Apex Triggers Getting Started with Apex Triggers Salesforceのオブジェクトのためのトリガーを書く トリガコンテキスト変数を使用 トリガからクラスメソッドを呼…
Trailhead『Data Security』をやってみました。 Overview of Data Security Controlling Access to the Organization Controlling Access to Objects Controlling Access to Fields Controlling Access to Records Creating a Role Hierarchy Defining Shari…
Trailheadの『Process Automation』をやってみました。 Choosing the Right Automation Tool Automating Processes with the Lightning Process Builder Creating Wizards with Visual Workflow Automating Time-based Actions with Workflow Routing Record…
Trailheadの『Formulas & Validations』をやってみました。次の内容が用意されています。 Using Formula Fields Implementing Roll-Up Summary Fields Creating Validation Rules Using Formula Fields 式のための要素とデータ型を記述 高度な数式を作成する…
Trailhead -『Visualforce Mobile』をやってみました。以下の内容が用意されています。 Getting Started with Visualforce in Salesforce1 Adding Visualforce Pages to the Navigation Menu Implementing Global Actions with Visualforce Pages Implementi…
Trailhead -『Chatter Basics』をやってみました。以下の内容が用意されています。 Getting Started with Chatter Enabling Feed Tracking Creating Publisher Actions Approving Records from the Feed Developing a Rollout Strategy Getting Started with…
SalesforceのTrailheadにLightning Componentsのカテゴリが追加されているので、ちょっとやってみました。 次の内容が用意されています。 Getting Started with Lightning Components Creating Components Defining Component Attributes Using Expressions …
2015年3月、世界中の100以上の都市で同時開催・・ということ開催されたLightning Developer Week Tokyo 2015に参加しました。 前半はLightning ConnectにProcessBuilder、Lightning ComponentとLightning AppBuilderの概要についてお話を聞くことができまし…
AppExchangeのサイトは日本語サイトと英語サイトが用意されていますが、英語サイトの方ではLightning ComponentsのAppExchangeアプリが公開されています。 AppExchange - Lightning Components Lightning Componentsで開発されたアプリは次のようにマークが…
『e.force:navegateToURL』を使うことで相対 URL または絶対 URL で指定したURLにページ遷移できます。相対 URL は、Salesforce1 モバイルブラウザアプリケーションドメインに対して相対的で、ナビゲーション履歴を保持します。外部 URL は、別のブラウザウ…
『e.force:navegateToSObject』はSalesforce1用の詳細ページに移動するための関数です。レコードIDを条件に指定します。slideDevNameに『detail/chatter/related』のいずれかを指定することで詳細ページの初期タブを指定することもできます。 次のような感じ…
『e.force:navegateToRelatedList』はSalesforce1用の関連リストページに移動するための関数です。関連リストのオブジェクトAPI名と親レコードのIDを条件に指定します。 次のように実装します。 サンプルコードとデモ動画です。tyoshikawa1106/lightning-for…
『e.force:navegateToObjectHome』はSalesforce1用のオブジェクトホームページに移動するための関数です。オブジェクトのAPI名をパラメータにセットすることで使用できます。resetHistoryをTrueにすることで遷移後の戻るリンクを非表示にすることも可能みた…
『e.force:navegateToList』はSalesforce1用のリストビューページに移動するための関数です。条件に指定するリストビューのIDはSOQLクエリで取得できます。 こんな感じでリストビューが表示されます。 あまり関係ないですが、リストビューページでグラフ表示…
『e.force:createRecord』はSalesforce1編集ページを表示するための関数です。レコードのIDを条件に指定するだけで簡単に画面遷移を行うことができます。 Cancelボタンで呼び出し元のページへ戻ることができます。Saveボタンで保存処理実行後も呼び出し元の…
『e.force:createRecord』はSalesforce1ページでのみ使用できるレコード作成ページ呼び出し関数です。オブジェクトのAPIを条件に指定するだけで簡単に画面遷移を行うことができます。Salesforce1のURLは特殊なので標準の作成画面に移動したいときに便利です…