This step-by-step guide will explain how to make the “Deal Win Video” mandatory for closing an opportunity.
This step-by-step guide also assumes that you already added your “Deal Win Video Template” in Salesforce as in the user guide tutorial
This document icludes:
- How to create a custom field on the “Opportunity” object :
- How to create a process to automatically check the custom field if there is a deal win video added
- Validation rule on opportunity to make deal win video mandatory
Create a custom field on the “Opportunity” object :
Which is A checkbox that is checked if there is a deal win video on the opportunity.
- In the top right-hand corner of Salesforce, select Setup (the gear icon).
- Use the quick-find menu on the left to search for and select “Object Manager”.
- Go to the Opportunity Object and “Fields and Relationships” and select “New”.
- Select “Checkbox” data type.
- Choose a name and a description for your field, and click “Next”.
- Click Next again.
- Choose the layouts you want your custom field to appear in and click Save.
Create a process to automatically check the custom field if there is a deal win video added :
- In the top right-hand corner of Salesforce, select Setup (the gear icon).
- Use the quick-find menu on the left to search for and select “Process Builder”.
- Click on new in order to create a new process.
- Choose a name for your process, and choose “A record changes” for the last picklist. Click Save.
- You’ll land on this page.
- Click on “Add Object” and search and select “Video”, select “When a record is created or edited”, and click on save.
- Click on “Add Criteria”, and choose your criteria name.
- First field and condition : Opportunity is linked
- Second field and condition : Template ID
-
Third field and condition : Add in your “Sales Profiles”. Make sure to add the correct spelling of your sales profiles.
-
Fourth field and condition : Select Opportunity record types you want to make the deal win video mandatory for. Make sure to type the correct spelling of your record type.
- Save your criteria
- Click on “Add Action”, then “Select One”, then “Update Records
- Name your action.
- Select “a record related to the emovie__video__c”, and search and select “Opportunity”
- Search and select the custom field you created.
- Save and activate your process. Now whenever a deal win video is added, the checkbox is checked.
Validation rule on opportunity to make deal win video mandatory
- In the top right-hand corner of Salesforce, select Setup (the gear icon)
- Use the quick-find menu on the left to search for and select “Object Manager”.
- Search and select the “Opportunity” object, then select “Validation Rules”
-
Click on “New” to create a new validation rule.
-
You will land on this screen.
-
Choose a “Rule Name” and a “ Description”.
- Now set the “Error Condition Formula” and the error message : Copy the following for the error condition :
NOT(Deal_Win_Video_Exist__c)
&&
(TEXT(StageName) = "Closed Won")
&&
TEXT(Type) = 'New Business'
&&
($Profile.Name!='EM: Admin' && $Profile.Name!='System Administrator' && $Profile.Name!='EM: Master Admin')
NB : change the “Closed Won” stage name into the equivalent in your organization. Change the Admin profile names into the equivalent profiles in your org. Change (or add) the opportunity types using the same logic.
- Save. Your process is now complete. Whenever a sales rep tries to close an opportunity without recording a deal win video, he/she will get the following message :
Comments
0 comments
Please sign in to leave a comment.