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?
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?
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.
Ans is D
i dont understand why A is incorrect?
Declarative tools are preferable is they could be used
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.
Declarative tools are more preferable to programming. The answer is B since Flow is the most recommended tool.
I thkink, its B, because process builder is deprecated
Ans is D ... as it can be handled in process builder
B is the correct answer
B is the answer, because declarative solution is available and flow is the most recommended declarative tool now
Flow is higher priority in SF now, sơ B
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.
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.
D not say process builder . For me tha correct answer is A
Process builder is going to be deprecated. So I think A.
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.
flow trigger will do. unless it's so complex we need to write it in trigger
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
https://admin.salesforce.com/blog/2023/what-is-a-record-triggered-flow#:~:text=Actions%20and%20Related%20Records%20(aka,created%20or%20updated%20in%20Salesforce.
Ans is B.because process builder is deprecated