Big Halloween Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Salesforce Certified Platform Developer 1 Exam CRT-450 Question # 1 Topic 1 Discussion

Salesforce Certified Platform Developer 1 Exam CRT-450 Question # 1 Topic 1 Discussion

CRT-450 Exam Topic 1 Question 1 Discussion:
Question #: 1
Topic #: 1

A developer is creating a page that allows users to create multiple Opportunities. The developer is asked to verify the current user's default Opportunity record type, and set certain default values based on the record type before inserting the record.

How can the developer find the current user's default record type?


A.

Create the opportunity and check the opportunity. recordtype, which will have the record ID of the current user's default record type, before inserting.


B.

Query the Profile where the ID equals userinfo.getprofileID () and then use the profile opportunity. getdefaultresoratype (} method,


C.

Use the schema. Userinfo. Opportunity. getDefaultRecordType {) method.


D.

Use opportunity. sobjectTyps. getDeacribse().getRecordTypeInfos {) to get a list of record types, and iterate through them until isDefaultRecordtypeMapping {) is true.


Get Premium CRT-450 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.