Lookup Relationship与Master-Detail Relationship的关系 || formula的特性|| picklist在代码编写时的注意事项
生活随笔
收集整理的這篇文章主要介紹了
Lookup Relationship与Master-Detail Relationship的关系 || formula的特性|| picklist在代码编写时的注意事项
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
Lookup Relationship
Account.Country From Contact if(con.Account.Country=='CN')Master-Detail Relationship
Select Id,(Select Id From Contact__r) from Accounts if(acc.Contact__r !=null)formula的特性 —— 數(shù)據(jù)已經(jīng)insert或者update之后,formula才會起作用。
Property__c pro = new Property__c(); pro.End_Date__c = Date.newInstance(date.today().year, 12, 31); insert pro; Property__c pro1=[Select Days_To_Close__c From Property__c Where id=:pro.Id]; System.debug(pro.Days_To_Close__c )picklist在代碼編寫時(shí)的注意事項(xiàng)
List<String> listFlavor=acc.Flavors.split(';'); acc.Flavors.contains(' ');?
總結(jié)
以上是生活随笔為你收集整理的Lookup Relationship与Master-Detail Relationship的关系 || formula的特性|| picklist在代码编写时的注意事项的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 将.NET概念映射到Lightning平
- 下一篇: 验证规则简介