Certified Platform Developer II Exam QuestionsBrowse all questions from this exam

Certified Platform Developer II Exam - Question 33


A company has a custom object, Sales Demo Request, that has a lookup to an Opportunity. It is required that a Sales Demo Request record be created when an

Opportunity's Probability is greater than 50%.

What is the optimal way to automate this?

Show Answer
Correct Answer: AB

The optimal way to automate this is to build a Flow on Opportunity. Flows are a highly recommended declarative tool in Salesforce for automating complex business processes without writing code. They support record-triggered actions, making them ideal for situations where you need to create related records based on changes to an Opportunity's fields, such as the Probability. Flows are flexible, maintainable, and do not require the overhead of custom code, making them a preferable choice over Apex Triggers, especially given Salesforce's ongoing emphasis on Flow capabilities.

Discussion

16 comments
Sign in to comment
sajjankrguptaOption: D
Dec 10, 2020

Ans is D

Pricha
Jul 20, 2021

i dont understand why A is incorrect?

ASKaranko
May 3, 2022

Declarative tools are preferable is they could be used

AjayMehtaOption: B
Apr 8, 2022

Answer: B Since the process builder is going to depreciate, even salesforce recommends flow over it and specifically mentions flow can do all things that a process builder can do even more than it.

drwebberOption: B
Dec 3, 2021

Declarative tools are more preferable to programming. The answer is B since Flow is the most recommended tool.

paster0Option: B
Feb 2, 2022

I thkink, its B, because process builder is deprecated

SantoshtpdOption: D
Jul 22, 2021

Ans is D ... as it can be handled in process builder

CaiXiDanOption: B
Jul 5, 2022

B is the correct answer

Ronin192Option: B
Oct 20, 2022

B is the answer, because declarative solution is available and flow is the most recommended declarative tool now

sf2022Option: B
Dec 7, 2022

Flow is higher priority in SF now, sơ B

ncoreOption: D
Nov 14, 2021

I think it could be A but also D, and as in salesforce is one of best practices "use rather build-in automatization than code" D would be probably more correct.

au_Option: B
Aug 15, 2023

Ans is B. In flow we can use action and related record to create related record. https://admin.salesforce.com/blog/2023/what-is-a-record-triggered-flow#:~:text=Actions%20and%20Related%20Records%20(aka,created%20or%20updated%20in%20Salesforce.

YeseniaFiorellaOption: A
Oct 7, 2021

D not say process builder . For me tha correct answer is A

parishkOption: A
Feb 1, 2022

Process builder is going to be deprecated. So I think A.

Ting21Option: A
Mar 20, 2023

both A and B are good answers. A being more specific use Apex trigger on Opportunity when probability becomes greater than 50%. B is more general, if B is build a record triggered flow on Opportunity then B will be the ans. So correct ans is A.

ram12313Option: B
Mar 27, 2023

flow trigger will do. unless it's so complex we need to write it in trigger

VVeguruOption: A
Jul 20, 2023

Can a flow generate Opportunity Id on creation? I would rather go with A not sure what reveal answer going to provide. It would be great reveal answer would give proper explanation

au_
Aug 15, 2023

https://admin.salesforce.com/blog/2023/what-is-a-record-triggered-flow#:~:text=Actions%20and%20Related%20Records%20(aka,created%20or%20updated%20in%20Salesforce.

AnjindalOption: B
May 21, 2024

Ans is B.because process builder is deprecated