PDI · Question #86
n org has an existing flow that creates an Opportunity with an Update Records element. A developer must update the flow to aiso create a `Contact and store the created Contact's 1D on the Opportunity.
The correct answer is B. Add a new Create Records element.. To create a new Contact record within an existing flow, the developer must add a 'Create Records' element to handle the insertion of the new Contact into the database.
Question
n org has an existing flow that creates an Opportunity with an Update Records element. A developer must update the flow to aiso create a `Contact and store the created Contact's 1D on the Opportunity. Which update must the developer make in the flow?
Options
- AAdd a new Get Records element.
- BAdd a new Create Records element.
- CAdd a new Update Records element.
- DAdd a new Roll back Records element
How the community answered
(47 responses)- A9% (4)
- B70% (33)
- C4% (2)
- D17% (8)
Why each option
To create a new Contact record within an existing flow, the developer must add a 'Create Records' element to handle the insertion of the new Contact into the database.
A `Get Records` element retrieves existing records from the database; it does not create new ones.
To create a new `Contact` record, a `Create Records` element is required in the flow. This element allows the flow to take values and insert a new record into the Salesforce database, and it can also store the ID of the newly created record for use in subsequent elements, such as updating the related `Opportunity`.
An `Update Records` element modifies existing records; it cannot be used to create a new `Contact` record from scratch.
A `Roll back Records` element is used in transaction control to revert changes made within a specific path of a flow if an error occurs; it does not create or update records.
Concept tested: Salesforce Flow Create Records element
Source: https://help.salesforce.com/s/articleView?id=sf.flow_ref_elements_data_create.htm&type=5
Topics
Community Discussion
No community discussion yet for this question.