CRT-450 Exam QuestionsBrowse all questions from this exam

CRT-450 Exam - Question 31


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?

Show Answer
Correct Answer: AC

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.

Discussion

16 comments
Sign in to comment
PiyushShahOption: A
May 30, 2020

answer is A. The API name is not changed and there are no other impacts.

VppprojOption: A
Aug 30, 2020

https://help.salesforce.com/articleView?id=000314907&type=1&mode=1 Answer seems to be A

AmirishettydivyashreeOption: A
Feb 2, 2021

If a variable is used in any apex class, its API name cannot be changed. Answer is A

TestEmOption: A
Aug 30, 2021

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

Shubh01Option: A
Mar 30, 2022

I am always right.

apuchowdhury80Option: A
Dec 21, 2022

Not possible to change the API name as it is referenced in Apex.

BeatrizBernardoOption: A
Jun 16, 2023

it is A

PP09Option: C
Jun 6, 2020

Ans is 'C' , I tried changing the API name from schema and its shows warning when save changes.

MarcoDaCD
Nov 27, 2020

Yes, Show warning but the API Name not change. The answer is A.

ApexMikeOption: A
Sep 28, 2022

You cannot change api name of a field if it's referenced in Apex code. A is correct.

ronak_h33tOption: A
Dec 1, 2022

A...........

1vanTTOption: A
Mar 14, 2023

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.

am1Option: B
May 5, 2020

I think, the ans. should be B. Since the user cannot change the API name without first removing the reference from the Test class.

PiyushShah
May 30, 2020

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

helper_rawOption: A
Nov 21, 2023

A is correct

BrayyyyOption: A
Jan 14, 2024

A correct answer

nikeshmhjOption: C
May 30, 2024

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.

TDB97Option: A
Jun 10, 2024

You can not change the api name of something that is being referenced in apex