Salesforce

【Salesforce】レコードタイプID取得

【Salesforce】レコードタイプID取得 // // getRecordTypeId // レコードタイプIDを取得 // param : オブジェクト名(DeveloperName) // param : レコードタイプ名(DeveloperName) // return : レコードタイプID //public ID getRecordTypeId( String objectN…

【Salesforce】承認プロセステストクラスエラー

【Salesforce】承認プロセステストクラスエラー ・テストクラス 承認プロセスの作成 Approval.ProcessSubmitRequest psr = new Approval.ProcessSubmitRequest(); 承認申請するオブジェクトの設定psr.setObjectId(objectId); 承認プロセス実行Approval.Proce…

Force.com IDE のインストール

Force.com IDE のインストール https://help.salesforce.com/articleView?id=000216209&language=ja&type=1 Force.com IDE http://media.developerforce.com/force-ide/eclipse42

【Salesforce】Sandbox 更新間隔

【Salesforce】Sandbox 更新間隔 SANDBOX の種類 更新間隔 ーーーーーーーーーーーーーーーーー Developer Sandbox 1 日 Developer Pro Sandbox 1 日 Partial Copy Sandbox 5 日 Full Sandbox 29 日 参考URL https://help.salesforce.com/articleView?id=dat…

【Salesforce】組織の Lightning Experience の無効化

【Salesforce】組織の Lightning Experience の無効化 Salesforce Classic の [設定] から、メニューの上部にある [Lightning Experience 移行アシスタント] タイルの [使用を開始する] をクリックします。Lightning Experience の [設定] から、[クイック検…

【Salesforce】ログイン場所を日本する方法

【Salesforce】ログイン場所を日本する方法 Production https://login.salesforce.com/?locale=jp Sandbox https://test.salesforce.com/?locale=jp

【Salesforce】項目履歴管理

【Salesforce】項目履歴管理 カスタムオブジェクトおよび次の標準オブジェクトの項目履歴を追跡できます。 取引先 記事 納入商品 キャンペーン ケース 取引先責任者 契約 契約品目名 エンタイトルメント リード 商談 注文 注文商品 商品 サービス契約 ソリュ…

【Salesforce】Map

【Salesforce】Map 例: Map<String,Map<String,String>> testMpas = new Map<String,Map<String,String>>{'Red' => new Map<String, String>{'Red0'=> 'FF0000','Red1' => 'FF0001'},'Blue' => new Map<String, String>{'Blue0'=> '0000A0','Blue1' => '0000A1'} }; for(String obj: testMpas.keySet()){ Set<String> keys = t…</string></string,></string,></string,map<string,string></string,map<string,string>

【Salesforce】Map

【Salesforce】Map 例: Map<String, String> colorCodes = new Map<String, String>(); colorCodes.put('Red', 'FF0000');colorCodes.put('Blue', '0000A0'); Set <String> colorSet = new Set<String>();colorSet = colorCodes.keySet();system.debug('colorSet:'+colorSet); for(String obj: colorCodes.ke</string></string></string,></string,>…

【Salesforce】Developer Editionアカウントの作成

【Salesforce】Developer Editionアカウントの作成 1.ブラウザを開き、以下のURLにアクセスします http://developer.salesforce.com/signup 2.サインアップフォームを入力します 参考URL http://salesforcedevelopersjapan.github.io/lightning-connect-…

【Salesforce】開発コンソールエラー:TotalRequests Limit exceeded

【Salesforce】開発コンソールエラー:TotalRequests Limit exceeded 設定>管理>組織プロファイル>組織情報 API 要求数 (この 24 時間以内) 15,042 (15,000 最大) 原因: API要求数(24時間以内)制限値を超えたため。 参考URL https://developer.salesfo…

【Salesforce】デバッグログを一括削除

【Salesforce】デバッグログを一括削除 設定>開発者コンソール 1.Query Editor 例: select id from ApexLog 2.削除対象ID選択して、Delete Rowボタン押下 参考URL http://www.subnetwork.jp/blog/?p=1110

【Salesforce】EmailにSalesforce Base URL取得

【Salesforce】EmailにSalesforce Base URL取得 例: system.debug(System.URL.getSalesforceBaseUrl().ToExternalForm()); 結果:https://cs23.salesforce.com 参考URL https://developer.salesforce.com/forums/?id=9060G000000UTtVQAW

【Salesforce】List index out of bounds: 0

【Salesforce】List index out of bounds: 0 例: List<custom obj__c> lrecords=[ select Id,name, from custom obj__c ]; lrecords[0].Fileld1__c = 2; lrecords[0].Fileld2__c =3; update lrecords; 上記を実行してlrecordsのリストサイズが0件の場合、lrecords[0]を呼び</custom>…

【Salesforce】Pardotスコアリング

【Salesforce】Pardotスコアリング 参考URL help.salesforce.com https://tobem.jp/pardot_blog/pardot_1/201711092226.html

【Salesforce】beforeトリガとafterトリガ

【Salesforce】beforeトリガとafterトリガ beforeトリガ レコードがDBに保存される前に起動 afterトリガ レコードがDBに保存された後に起動 実行手順 beforeトリガ → 必須、入力規則のチェック → afterトリガ 使い分け beforeトリガ : 入力規則のチェックよ…

【Salesforce】Ending position out of bounds: 3

【Salesforce】Ending position out of bounds: 3 例: String areaCodeA = phone.substring(0,3); エラー: Ending position out of bounds: 3 対策: if(phone.Length()>=3){ String areaCodeA = phone.substring(0,3); } 参考URL https://developer.sales…

【Salesforce】SOAP API テストツール Postman

【Salesforce】SOAP API テストツール Postman 参考URL http://blog.getpostman.com/2017/11/18/postman-makes-soap-requests-too/

【Salesforce】Exception

【Salesforce】Exception 以下のExceptionの原因究明が難しい。 CalloutException 外部システムへのコールアウトの失敗など、Web サービス処理に関する問題を示す例外。 参考URL https://developer.salesforce.com/docs/atlas.ja-jp.apexcode.meta/apexcode/…

【Salesforce】String.valueOf

【Salesforce】String.valueOf 例: Map<String,String> leadOwnerMap = new Map<String, String>();for(Lead obj: [Select id, OwnerId From Lead]){ leadOwnerMap.put(obj.id, obj.OwnerId);}System.debug('leadOwnerMap:'+leadOwnerMap); Map<String,String> contactOwnerMap = new Map<String, String>();for(Contact ob</string,></string,string></string,></string,string>…

【Salesforce】substring

【Salesforce】substring substring(startIndex, endIndex) Returns a new String that begins with the character at the specified zero-based startIndex and extends to the character at endIndex - 1. 例: 'hamburger'.substring(4, 8); // Returns "…

【Salesforce】SOQL Where文

【Salesforce】SOQL Where文 例: String nameString = 'a'; Account A = new Account(Name='a');insert A; List<Account> accList = new List<Account>();accList = [SELECT Id FROM Account WHERE Name = :nameString];System.debug('accList:'+accList); List<Account> accList2 = ne</account></account></account>…

【Salesforce】List, Map, Set

【Salesforce】List, Map, Set List 重複した値のセット(add)が可能です。 Map キーによって値を管理しているため、キーの重複は不可です。但し、値の重複は可能です。 ※同じキーがセット(put)された場合は、上書きされます。 Set 重複した値のセット(add)は…

【Salesforce】Eclipse基本設定

【Salesforce】Eclipse基本設定 Package Explorer の[▽] > [Filters...] > [Name filter Patterns] にチェックを行い、 [*.cls-meta.xml,*.component-meta.xml,*.page-meta.xml,*.trigger-meta.xml]を指定します。 左から順に、classes、components、pages、…

【Salesforce】Force.com IDE のインストール

※Force.comのバージョンが38の場合、なぜか「eclipse Unable to refresh file metadata」エラーがでたので、以下の手順で起こって、エラーが出ないことを確認した。 前提として必要なアプリケーションは Eclipse となります。 clipse を利用するには Java が…

【Salesforce】with sharing キーワード クラスのメソッド

【Salesforce】with sharing キーワード クラスのメソッド メソッドで使用できるレコードに組織の共有ルールが自動的に適用されます。 with sharing キーワードの使用は、サーバ側コントローラコードの作成時に実施する必要のあるセキュリティ対策の 1 つで…

【Salesforce】EclipseでForce.com IDEのLightning Components Support設定

【Salesforce】EclipseでForce.com IDEのLightning Components Support設定 Force.com IDE v37.0以上サポートされている。 Force.com IDE plug-inインストール時にLightning Support選択する。 ご参考 1.Force.com IDEインストール https://developer.sale…

【Salesforce】カスタム設定の設定種別:リスト

【Salesforce】カスタム設定の設定種別:リスト ・方法 スキーマ設定→・・・「リスト」・・・ を「有効化」する。 参考URL カスタム設定の【設定種別:リスト】が選べなくなった時について【Salesforce】 | 株式会社日本システムデザイン【鹿児島事業所】

【salesforce】取引先責任者およびリードの標準一致ルール

【salesforce】取引先責任者およびリードの標準一致ルール 1.リードの標準一致ルール (First Name AND Last Name AND Title AND Company) OR (First Name AND Last Name AND Email) OR (First Name AND Last Name AND Phone AND Company) OR (First Name AN…

【Salesforce】 バッチクラス テストクラス作成

【Salesforce】 バッチクラス テストクラス作成 参考URL https://tyoshikawa1106.hatenablog.com/entry/2016/03/09/173159