Notes
Apex:
Account newCustomerAccount = new Account(Name='Sample Customer Account');
insert newCustomerAccount;
Opportunity newSalesOpportunity = new Opportunity();
newSalesOpportunity.Name = 'New Sales Opportunity';
newSalesOpportunity.StageName = 'Prospecting';
newSalesOpportunity.CloseDate = Date.newInstance(2023, 11, 30);
newSalesOpportunity.AccountId = newCustomerAccount.Id;
insert newSalesOpportunity;
Flow Builder:
Video
Video does not exists.