How to Use Salesforce Flow to Update an Account When an Opportunity is Closed

  Рет қаралды 10,101

Rotive - Brian Hays

Rotive - Brian Hays

Күн бұрын

Пікірлер: 55
@ericmauriello5359
@ericmauriello5359 Жыл бұрын
I love love love how you explain SF Flows.. so clear cut and helpful. Please keep making contact so us non-SF admins who have SF and are force to admin it, can have a fighting chance to get the value out of our SF system. Thanks!
@Rotive
@Rotive Жыл бұрын
Thanks, Eric! I appreciate the kind words and am glad you find the videos helpful. You're not the only accidental Salesforce admin out there. That's how most get started actually.
@rajeshbhattad
@rajeshbhattad 2 жыл бұрын
That's very helpful, Brian. Cheers!
@Rotive
@Rotive 2 жыл бұрын
Glad it was helpful, Rajesh!
@KatieVanDruff
@KatieVanDruff 9 ай бұрын
You videos are so helpful - thank you. How do I add an automatic alert (email?) to a group of users when the Opportunity is Won to go along with the Account update?
@AnnaSzabo
@AnnaSzabo 2 жыл бұрын
I love this teaching style, Brian! Thank you. Subscribed and liked.
@Rotive
@Rotive 2 жыл бұрын
Thank you very much! We appreciate it.
@dawnhingston2726
@dawnhingston2726 Жыл бұрын
this was such a big help to me thank you!!!
@iviejo6444
@iviejo6444 2 жыл бұрын
This was really helpful. Thank you 😊
@Rotive
@Rotive 2 жыл бұрын
You're so welcome!
@sarahhagan6438
@sarahhagan6438 Жыл бұрын
Hi, Great video. I was wandering how to automate when a customer changes to a past customer? For example the opp is closed/won, the customer has a contract for 3 years, at the end of 3 years they discontinue the service, how do with set up an automation to change the Account Type to past customer? Our thought was to use a flow using contract=inactive. But what if they have 3 active contracts and only 1 changes to inactive. Then how would you set up a flow for that? Thanks! I love you videos :)
@Rotive
@Rotive Жыл бұрын
Hi Sarah, Thanks for the comment! There are a lot of different ways you could tackle this problem. If you're using the contract object like you suggest, you could trigger the flow when a Contract record is marked inactive and then use a Get Records element to get all Contract records related to the triggering record's Account where Active is True and the ID is not equal to the ID of the triggering record. Then you can use a decision element to see if the Get Records step found any Contract Records. If it did, that would mean there is another active Contract and perhaps you want the flow to just end. If it didn't find any Contract records, you can then proceed with updating the related account to be a Former Customer. Is that helpful?
@sarahhagan6438
@sarahhagan6438 Жыл бұрын
@@Rotive Wow this is so detailed! Thanks so much we will try this out!
@StevenOffutt
@StevenOffutt Жыл бұрын
I really like your videos. Each time I use one of them I get the exact help I need. It is so easy to follow along and learn from you! Thank you so much!!!
@Rotive
@Rotive Жыл бұрын
So glad to hear you’re finding the videos helpful. Are there any specific topics you’d like us to cover?
@StevenOffutt
@StevenOffutt Жыл бұрын
@@Rotive Do you have anything on Validation rules and using the Functions vs. using the operators. Or How to write SOQL for tools like Salesforce Inspector.
@Rotive
@Rotive Жыл бұрын
@@StevenOffutt As a matter of fact, we do! We just released this free course on Validation Rules that also covers functions and operators. academy.rotive.io/courses/the-salesforce-validation-rules-crash-course-for-beginners We released this course a week ago. haha. Perfect timing.
@StevenOffutt
@StevenOffutt Жыл бұрын
@@Rotive Amazing. Thank you so much, I signed up and will be working through this!
@Rotive
@Rotive Жыл бұрын
@@StevenOffutt That's great! Let us know what we can do to improve it.
@shannaheyes
@shannaheyes 2 жыл бұрын
Great video - I have a more complex flow that I need assistance with, is there a way you can assist me?
@Rotive
@Rotive 2 жыл бұрын
Hi Shanna, Thanks for watching our videos! We're only taking on Managed Service clients right now which might be more than you need if you're just looking for help with one flow. Can you tell me a little bit about the flow? Maybe it would make a good KZbin video. :D
@AnnaSzabo
@AnnaSzabo 2 жыл бұрын
@@Rotive This is so cool. I appreciate how you cherish your community here on KZbin, Brian. I sent you a LinkedIn connection request.
@ReemHassan-py8ir
@ReemHassan-py8ir Жыл бұрын
Awesome! Very easy to follow! Can we update the account owner this way?
@shanthik1167
@shanthik1167 Жыл бұрын
@reem Did you got a answer ? I have a scenario like this
@Rotive
@Rotive Жыл бұрын
Hi Reem and Shanthi, Absolutely. You'll just want to get the ID of the User you want to be the new owner, then you can update the Account record.
@shanthik1167
@shanthik1167 Жыл бұрын
@@Rotive Thank you for the reply. Appreciate.Subscribed
@onlyyenna
@onlyyenna Жыл бұрын
So many good videos on this channel! Is this worth setting up before you start entering data into Salesforce?
@Rotive
@Rotive Жыл бұрын
Hey Enna, it probably depends on the state of your data. It is nice to have some of these rules in place when adding data so they can run and improve the data on import, but it's a best practice to have the data in the best possible shape before import. If your data is already in great shape and customers are marked as customers, you could create this automation after the import.
@jamesbuggenhagen4936
@jamesbuggenhagen4936 Жыл бұрын
this is really helpful. However, what is the best way to relate the two records when using a screenflow instead of a record triggered flow?
@Rotive
@Rotive Жыл бұрын
It's very similar. You just need to have the user select the correct records in the screen flow or pass the ID of the record they were on when they initiated screenflow by created a text variable called recordId and setting it to "available for input".
@jamesbuggenhagen4936
@jamesbuggenhagen4936 Жыл бұрын
@@Rotive ty so much. really helpful
@JohnBorgen
@JohnBorgen Жыл бұрын
I would add an additional filter testing if the account is already set to Customer. Then, you wouldn't have to make unnecessary updates to the Account obj. It's probably a little nitpicky...it really just depends on the volume of closed won opportunities.
@JohnBorgen
@JohnBorgen Жыл бұрын
Turns out this isn't as easy. You need to add a formula field to the Opportunity obj to pull the Customer Type from the Account record. Then it's available in the Opportunity record to use as another filter before triggering the flow.
@Rotive
@Rotive Жыл бұрын
I think that's a great addition to the automation! Thanks for sharing. It will certainly make it more efficient to make sure you're excluding Accounts that are already a customer. The formula field on the Account is a good solution. Formula fields are really useful for extending the filter on the trigger for Flows, because you're limited to just fields on that record in the Flow Builder. Great for Scheduled flows too. I've used formulas to mark a record as available for automation or not in order to help decrease the number of records it runs on.
@sjsri-j7q
@sjsri-j7q Жыл бұрын
I hope i'll get an answer. Question : What if i need to update 20 account fields with opportunity record values. In addition to that only fields with value only has to be updated (if any opportunity field has null value then no need to update the particular account field).
@Rotive
@Rotive Жыл бұрын
Hey there! This is an interesting question. You can certainly expand the flow to update more account fields based on opportunity fields. The question of only updating the Account field when the opportunity field is not Null is a little trickier. You could create a chain of decisions to check if each field is Null but that sounds like a lot of work.... Could you help me understand why there are so many fields to update based on Opportunity fields? Perhaps there is a better way to accomplish the business goal.
@Devanathankj
@Devanathankj Жыл бұрын
Team, Is it possible for us to update a multiple opportunity fields during opportunity creation from the primary contact mapped to opportunity using flows?
@Rotive
@Rotive Жыл бұрын
Hey Devanathan, it is. You could create a flow that updates an opportunity when it's created generally or create a screen flow that is triggered with a button that's placed on the contact record.
@Devanathankj
@Devanathankj Жыл бұрын
@@Rotive Thanks for the confirmation. Does Rotive have any tutorial video that I can use and replicate the action?
@Rotive
@Rotive Жыл бұрын
@@Devanathankj I think this video could help. It's more advanced than what you need, but I think it'll get you there. kzbin.info/www/bejne/nai2qIGDo72Zha8
@premsingh-hj3gj
@premsingh-hj3gj Жыл бұрын
What if we have more than one opportunities related to an account? One is closed won but the other one is still in let's say needs analysis. In this case the account should not change to customer. I need the account to change to customer only when all the account's related opportunities are closed won. How will you do it?
@JohnBorgen
@JohnBorgen Жыл бұрын
That's definitely more involved. You have to write a loop in the flow to find all of the opportunities. Then test that all opportunities in the record set are Closed Won.
@Rotive
@Rotive Жыл бұрын
I agree with John on the approach. You could still have the Closed/Won opportunity trigger the flow and then include a Get Opportunities step that is looking an Opportunity that is still open. Then add a Decision step with the logic that if the previous Get step is empty proceed with the update and if it is not empty end. A little trickier for sure.
@JohnWick-mz1eo
@JohnWick-mz1eo Жыл бұрын
@@Rotive i thinks the scenario seems confused... can you explain a bit more to only update when all its related opportunities are closed won
@Rotive
@Rotive Жыл бұрын
Hi Prem, we just made a video showing you how to check if any open opportunities exist before updating the related account. Hope it helps! kzbin.info/www/bejne/nn2zmpillLhonJY In the future, if you'd like us to prioritize your video ideas, please consider joining our channel membership. Click Join under the video to see more details. Thank you for watching!
@DavidKarson
@DavidKarson Жыл бұрын
I am confused about one thing. When you win an opportunity, the account doesn't automatically change from Prospect to Customer?
@Rotive
@Rotive Жыл бұрын
It does not. Being able to automate this yourself is nice if you have a different use case. For example, some companies use Opportunities to track trials or pilots. They might "win" a trial opportunity and not want to mark that prospect as a customer yet.
@xxEmmaxxFabxx
@xxEmmaxxFabxx Жыл бұрын
what if we wanted to update the contact status related to the account? with a custom field on contact named "status" and want to set it to "current client" when a opp is closed won?
@Rotive
@Rotive Жыл бұрын
Hey There, You can replace the update account step with an update step for the contact object where the Account ID is equal to the Opportunity's Account ID. Make sure you choose to update all contacts that fit that criteria. This will update all contacts related to the account.
@xxEmmaxxFabxx
@xxEmmaxxFabxx Жыл бұрын
@@Rotive Thank you Brian! This solved it perfectly for me. Out of curiosity, could this also be done using process builder? would it be just as effective?
@Mychannel123-y5m
@Mychannel123-y5m 11 ай бұрын
what if there were multiple opportunities??
@Rotive
@Rotive 11 ай бұрын
That's a good question. The logic in the Flow should follow your business logic. The question is when do you consider someone a customer or former customer. Most companies will consider someone a customer if they've made a purchase regardless if there are other lost opportunities associated with them.
@vasundharabhele4770
@vasundharabhele4770 Жыл бұрын
If you have many opportunities for a account then how??
@Rotive
@Rotive Жыл бұрын
When the first opportunity closes, they would become a customer. Help me understand the scenario you're thinking of and I'll do my best to give you a good answer.
@Rotive
@Rotive Жыл бұрын
Hey Vasundhara, please check out this video. I think it will answer your question. kzbin.info/www/bejne/nn2zmpillLhonJY
Automate Creating Assets With a Salesforce Flow Loop - Tutorial
10:52
Rotive - Brian Hays
Рет қаралды 3,4 М.
How to Use Record Types in Salesforce Flows
8:07
Rotive - Brian Hays
Рет қаралды 10 М.
У вас там какие таланты ?😂
00:19
Карина Хафизова
Рет қаралды 17 МЛН
What is Salesforce Chatter?
6:58
Rotive - Brian Hays
Рет қаралды 16 М.
Update Custom Last Activity Date Field with Salesforce Flow
13:06
Rotive - Brian Hays
Рет қаралды 8 М.
How to Set Up Product Schedules in Salesforce Lightning
7:53
Rotive - Brian Hays
Рет қаралды 7 М.
How to Create an Opportunity Stage Conversion Report in Salesforce
8:01
Rotive - Brian Hays
Рет қаралды 16 М.
Custom Flow Solution: Warn Sales of Price Changes
18:23
Rotive - Brian Hays
Рет қаралды 574
Create a Roll-Up Summary Field with Salesforce Flow
15:53
Rotive - Brian Hays
Рет қаралды 7 М.