原创 Move from SQL to SOQL

SQL返回的輸出未格式化爲JSON 

原创 Create an Apex class that returns both contacts and leads based on a parameter.

public class ContactAndLeadSearch { public static List<List<sObject>> searchContactsAndLeads(String lastName){

原创 Create a method for inserting accounts.

public class AccountHandler { public static Account insertNewAccount(String an){ Account acc=new Account(na

原创 Create an Apex class that returns contacts based on incoming parameters

public class ContactSearch { public static List<Contact> searchForContacts(String Str1, String Str2) {

原创 爲帳戶創建一個Apex觸發器,以根據自定義字段將送貨地址郵政編碼與賬單地址郵政編碼匹配

trigger AccountAddressTrigger on Account (before insert, before update) { for(Account a : Trigger.new){ I

原创 Choose the Right Search Solution

首先,讓我們討論一下整個搜索過程是如何工作的 所有記錄都作爲數據字段存儲在組織的數據庫中。當您更新或創建記錄時,搜索引擎會出現,對數據進行復制,然後將內容分解稱爲令牌的較小碎片。我們將這些標記以及返回原始記錄的鏈接存儲在搜索索引中 從用

原创 Get Started with Apex的playground練習

public class StringArrayTest { public static List<String> generateStringArray(Integer n) { List<

原创 salesforce開發入門1

What's true about Apex controllers? lightning components use server-side Apex Controllers What types of elements do you

原创 Lookup Relationship與Master-Detail Relationship的關係 || formula的特性|| picklist在代碼編寫時的注意事項

Lookup Relationship Account.Country From Contact if(con.Account.Country=='CN') Master-Detail Relationship Select Id,(

原创 將.NET概念映射到Lightning平臺

將.NET概念映射到Lightning平臺 完成本單元后,您將能夠: 瞭解哪些主要功能構成了Lightning Platform和Apex編程語言 識別.NET和Lightning平臺之間的異同 使用開發者控制檯創建您的第一個Apex類

原创 Apex觸發器

Apex觸發器使您可以在事件發生之前或之後對Salesforce中的記錄(例如插入,更新或刪除)執行自定義操作。 就像數據庫系統支持觸發器一樣,Apex爲管理記錄提供觸發器支持 通常,您可以使用觸發器根據特定條件執行操作,修改相關記錄或限

原创 驗證規則簡介

驗證規則   將驗證用戶在記錄中輸入的數據是否符合您指定的標準,然後他們才能保存它們。 驗證規則可以包含一個公式或表達式,用於評估一個或多個字段中的數據並返回“ True”或“ False”的值。 驗證規則還可以包括錯誤消息,以在用戶基於