2022-02-01から1ヶ月間の記事一覧
方法1 主従関係項目更新エラー「 Field is not writeable」の解決方法 SalesforceのApexコードで主従関係項目更新することによって、“Field is not writeable”エラーが発生してしまいます。解決策はありませんか? Cloneメソッドを利用してレコード作り直す…
SELECT AccessType, CreatedById, CreatedDate, DeveloperName, Id, IsReadonly, LastModifiedById, LastModifiedDate, Name, NamespacePrefix, ParentId, SystemModstamp, TypeFROM Folder https://developer.salesforce.com/docs/atlas.ja-jp.api.meta/api…
if (Schema.sObjectType.Contact.fields.Email.isUpdateable()) { // Update contact phone number } developer.salesforce.com
文字列 str を指定することも可能です。フォーマットは、RFC 2822 や ISO 8601 などを参考にしていますが、ブラウザやバージョンや地域設定により解釈可能なフォーマットが異なります。JavaScript date = new Date("Fri, Dec 03, 1999 23:59:59 +0900"); // …
<c-modal title='顧客マージ' close-label='閉じる'></c-modal>
public static Set<String> getObjectItems(String objName){ Set<String> objItems = new Set<String>(); try { // ① オブジェクトを指定してオブジェクトの情報を取得します。 Schema.SObjectType sObj = Schema.getGlobalDescribe().get(objName); // ② 項目情報を取得するためにD</string></string></string>…
メソッド ソース public static Map<String,Integer> getPicklist(String sObjName, String fieldName){ Map<String,Integer> pickListMap = new Map<String,Integer>(); List<Schema.PicklistEntry> pickList; Schema.SObjectType sObjType = (Schema.SObjectType) Schema.getGlobalDescribe().get(sObjName); if(sObjType != nul…</schema.picklistentry></string,integer></string,integer></string,integer>
labyrinth-of-wisdom.hatenadiary.com Account account = new Account(Name = 'aaa'); Campaign campaign = new campaign(Name = 'bbb'); // ロールバックした際に戻るポイント Savepoint sp = Database.setSavepoint(); try{ insert account; insert campai…
proengineer.internous.co.jp
note.com 同期処理 async関数の中で、awaitしても同じ結果になると言うことです。 import ApexMethod1 from '@salesforce/apex/ApexClass.ApexMethod1'; import ApexMethod2 from '@salesforce/apex/ApexClass.ApexMethod2';import ApexMethod3 from '@sales…
calamel-nuts.hateblo.jp
// チェックされている値を取得 for(let i=0 ;i
LMS関連 DataTableについて checkboxの選択状況を取得方法 <lightning-datatable key-field="id" data={dataLists} columns={columnsLists} onrowselection={selectRowAction}> </lightning-datatable>