First! Welcome back to UA-cam. If you are bad at Flow like me, you can just do this: Opportunity opp = [SELECT Amount, AccountId FROM Opportunity WHERE StageName = "Closed Won" AND AccountId = :selectedAccountId ORDER BY Amount DESC LIMIT 1]; insert new Account(Id = opp.AccountId, AnnualRevenue = opp.Amount, LargestWonOpportunity=opp.Id); decorate w/ @InvocableMethod bulkify using map let rest for about 4 minutes garnish with documentation serve to Flow creators so they can reuse the action in other Flows in just one node (...or just make a subflow of what's shown in the video LOL)
👩🏿💻 Want to become a dev but don't know where to get started?
👉🏿 Check out my course on Apex Fundamentals tinyurl.com/LEARNSFDEV
Hey Warren, what a great surprise to see you again in the channel providing value! I really like your FLOW exercises.... thanks for posting!
Happy to be back. Thanks for the support Pedro.
First!
Welcome back to UA-cam.
If you are bad at Flow like me, you can just do this:
Opportunity opp = [SELECT Amount, AccountId FROM Opportunity WHERE StageName = "Closed Won" AND AccountId = :selectedAccountId ORDER BY Amount DESC LIMIT 1];
insert new Account(Id = opp.AccountId, AnnualRevenue = opp.Amount, LargestWonOpportunity=opp.Id);
decorate w/ @InvocableMethod
bulkify using map
let rest for about 4 minutes
garnish with documentation
serve to Flow creators so they can reuse the action in other Flows in just one node (...or just make a subflow of what's shown in the video LOL)
Maybe we can do a collaboration implementing the code version of this and comparing it to the flow version.
Thank you Warren. Getting Good practises from you. Need more and more scenario based flows. Thank so much