Це відео не доступне.
Перепрошуємо.
How to Use Salesforce Flow to Update an Account When an Opportunity is Closed
Вставка
- Опубліковано 15 сер 2022
- ⭐️ Want to use Salesforce Flow to automate your business? Join our 2-day live class next week! Use coupon code “UA-camSUB15” to save 15%. www.rotive.io/...
Learn Salesforce Flow with a beginner tutorial that shows you how to automatically update an Account when an Opportunity is Closed/Won. This video shows you step-by-step how to create a record-triggered flow.
▶️ SUBSCRIBE TO OUR UA-cam CHANNEL: go.rotive.io/y...
🤖 LIVE SALESFORCE FLOW CLASSES: go.rotive.io/l...
⚡️ SALESFORCE COURSES:
→ The Salesforce Reporting Crash Course for Beginners: go.rotive.io/r...
→ The Pardot (MCAE) Course for Beginners: go.rotive.io/p...
→ DIY Pardot (MCAE) Implementation Course: go.rotive.io/d...
→ FREE The Salesforce Validation Rules Crash Course for Beginners: go.rotive.io/v...
🍎 VIEW ALL COURSES AT ROTIVE ACADEMY: go.rotive.io/a...
-------------------------------------------------------
Rotive is an official Salesforce Partner that helps small businesses automate their processes.
📍 Visit our website: go.rotive.io/h...
👍 Follow us on LinkedIn: go.rotive.io/LI
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!
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.
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?
I love this teaching style, Brian! Thank you. Subscribed and liked.
Thank you very much! We appreciate it.
That's very helpful, Brian. Cheers!
Glad it was helpful, Rajesh!
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!!!
So glad to hear you’re finding the videos helpful. Are there any specific topics you’d like us to cover?
@@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.
@@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.
@@Rotive Amazing. Thank you so much, I signed up and will be working through this!
@@StevenOffutt That's great! Let us know what we can do to improve it.
this was such a big help to me thank you!!!
This was really helpful. Thank you 😊
You're so welcome!
So many good videos on this channel! Is this worth setting up before you start entering data into Salesforce?
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.
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.
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.
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.
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?
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.
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.
@@Rotive i thinks the scenario seems confused...
can you explain a bit more to only update when all its related opportunities are closed won
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! ua-cam.com/video/hLPieo_S5f4/v-deo.html 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!
Awesome! Very easy to follow! Can we update the account owner this way?
@reem Did you got a answer ? I have a scenario like this
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.
@@Rotive Thank you for the reply. Appreciate.Subscribed
Great video - I have a more complex flow that I need assistance with, is there a way you can assist me?
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 UA-cam video. :D
@@Rotive This is so cool. I appreciate how you cherish your community here on UA-cam, Brian. I sent you a LinkedIn connection request.
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 :)
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?
@@Rotive Wow this is so detailed! Thanks so much we will try this out!
I am confused about one thing. When you win an opportunity, the account doesn't automatically change from Prospect to Customer?
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.
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?
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".
@@Rotive ty so much. really helpful
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?
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.
@@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?
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).
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.
Team, Is it possible for us to update a multiple opportunity fields during opportunity creation from the primary contact mapped to opportunity using flows?
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.
@@Rotive Thanks for the confirmation. Does Rotive have any tutorial video that I can use and replicate the action?
@@Devanathankj I think this video could help. It's more advanced than what you need, but I think it'll get you there. ua-cam.com/video/gwSwNMnXfOM/v-deo.html
what if there were multiple opportunities??
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.
If you have many opportunities for a account then how??
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.
Hey Vasundhara, please check out this video. I think it will answer your question. ua-cam.com/video/hLPieo_S5f4/v-deo.html