A map is a collection of key-value pairs where each unique key maps to a single value. Keys and values can be any data type—primitive types, collections, sObjects, user-defined types, and built-in Apex types.
Salesforce Maps Apex Developer Guide
removing, or retrieving elements. This example uses Map methods to add new elements and retrieve existing elements from the map. This example also checks for the existence of a key and gets the set of all keys. The map in this example has one element with an integer key and an account ...
在上面的代码中,如果有大量记录(例如50000条),则for循环将被执行50000次,并且for循环中的每一行也将被执行50000次。我们可以通过使用良好的SOQL查询来避免不必要的for循环,该查询将返回map而不是list。之后,我们可以使用方法轻松获得客户列表或一组客户ID或客户ID列表。新的Apex代码如下:List<id> accIdsList ...
Apex 対応付けとリストの参照 動的バインドを使用する Visualforce ページは、マークアップ内の ApexMapおよびListデータ型を参照できます。 たとえば、ApexListが次のように定義されている場合、 publicList<String>people{get{returnnewList<String>{'Winston','Julia','Brien'};}set;}publicList<In...
please consider misspellings try different search keywords apex developer guide getting started with apex writing apex data types and variables control flow statements classes, objects, and interfaces working with data in apex working with sobjects data manipulation language soql and sosl queries soql ...
salesforce portfolio agentforce ai agents that take action for you best-in-class crm apps customer 360 for sales, service, and more unified customer data data cloud, integrations, analytics low code, customizable platform automations, prompts, models, code, and more foundations key customer 360 ...