- Salesforce Platform Developer I Certification Guide
- Jan Vandevelde Gunther Roskams
- 251字
- 2021-08-20 10:02:15
Schema design and modification impact on Apex development
Previously, we have learned how we can define our data model through the user interface (UI), such as creating new objects and new fields and linking them to each other by creating specific relationships.
When you define objects, fields, and relationships, they become instantly available for you to use in declarative automation features and also in Apex code. Everything defined through the UI can be used programmatically with Apex and Salesforce Object Query Language (SOQL). I'll explain this in more detail in Chapter 4, Apex Basics, under the Working with data in Salesforce section, but, for now, you need to know when objects and/or fields are used/referenced elsewhere in Salesforce.
You won't be able to delete those fields or objects, as Salesforce won't allow that, and it will come up as a big error message telling you where the field or object you are trying to delete is referenced in your code (like in the following screenshot):

This is a good thing, because you could easily delete a field and the existing logic that is in your production org would break if you didn't pay attention.
So, if you want to delete or modify a field or object that is used in the code or elsewhere in Salesforce, you need to follow these steps:
- You need to remove the reference.
- Then, delete the field or object.
- Finally, refactor your code or formulas so that everything can continue to work.
- Excel函數(shù)與公式標(biāo)準(zhǔn)教程(實(shí)戰(zhàn)微課版)
- 遠(yuǎn)程辦公效率手冊
- Excel公式與函數(shù)從入門到精通
- Excel 職場手冊:260招菜鳥變達(dá)人
- Power BI企業(yè)級分析與應(yīng)用
- Excel行政文秘應(yīng)用之道
- Office2010從入門到精通(視頻講解+圖解+技巧)
- PPT職場利器:PPT商務(wù)應(yīng)用案例大全
- 如何高效辦公:Excel 2013經(jīng)典應(yīng)用技巧大全
- 巧學(xué)活用Word
- MATLAB及Mathematica軟件應(yīng)用
- Excel統(tǒng)計(jì)分析:方法與實(shí)踐
- Excel數(shù)據(jù)處理與分析
- Unity 3D增強(qiáng)現(xiàn)實(shí)開發(fā)實(shí)戰(zhàn)
- 文形色構(gòu),職場人士必修的PPT演示設(shè)計(jì)課