Using the Schema Builder, a developer tries to change the API name of a field that is referenced in an Apex test class.
What is the end result?
Using the Schema Builder, a developer tries to change the API name of a field that is referenced in an Apex test class.
What is the end result?
If a field's API name is referenced in an Apex test class, it cannot be changed using the Schema Builder or any other means within the Salesforce platform without first removing the references. The end result is that the API name remains unchanged and there are no other impacts.
answer is A. The API name is not changed and there are no other impacts.
https://help.salesforce.com/articleView?id=000314907&type=1&mode=1 Answer seems to be A
If a variable is used in any apex class, its API name cannot be changed. Answer is A
Answer is A. The API name is not changed and there are no other impacts. Just tried to update both on Setup and Schema Builder and error message shows and nothing has changed
I am always right.
Not possible to change the API name as it is referenced in Apex.
it is A
Ans is 'C' , I tried changing the API name from schema and its shows warning when save changes.
Yes, Show warning but the API Name not change. The answer is A.
You cannot change api name of a field if it's referenced in Apex code. A is correct.
A...........
Answer is A. Just replicated this in a dev org and got the below error when trying to update the API name through schema builder: Cannot rename custom field referenced in Apex class or trigger: <a href="/01p0900000TfMJj">changeMeTest</a> Interestingly you also get a warning ahead of the error about changing anything that could mess with integrations.
I think, the ans. should be B. Since the user cannot change the API name without first removing the reference from the Test class.
As it is asking for the end result this is not the answer. It is not mentioned that the API name is removed before the action
A is correct
A correct answer
C is correct.We can change the API name of the field and is saved as well, tried in developer edition.some fields with reference to trigger cannot be changed.
You can not change the api name of something that is being referenced in apex