Salesforce CPQ Tutorial: A Beginners Guide to Salesforce CPQ
Last updated on Jun 12, 2024
Introduction to Salesforce CPQ:
Salesforce CPQ stands for Configure, Quotes, and pricing of your business data. The Salesforce CPQ is just an extension of customer relationship management (CRM). This tool makes the sales process/ billing easier, faster, and more organized. The main purpose of Salesforce CPQ converts the sales cycle spreadsheet into an automated sales tool to deliver an error-free and accurate quote. Salesforce CPQ has come up with many advanced feathers and applications that help users to sell the correct product, discount control, and also automates the approvals. Salesforce CPQ is just a part of the Salesforce software system and founded in the year 2009. Salesforce CPQ pulls the inappropriate sales data into the configured mode to process and ensure consistency.
Want to enhance your skills in dealing with the worlds best CRM, Enroll in our Salesforce CPQ Training
Why Salesforce CPQ?
As I said earlier Salesforce CPQ has developed to overcome the sales hurdles with respect to billing, quoting, and approval. Very importantly, business enterprises should wait until they get final approval and aren't able to take up the next business deal. So Salesforce CPQ is helping most of the business enterprises to overcome this problem.
Let me discuss the key features of Salesforce CPQ:
Configuration features:
- Offers bundles, features, and options.
- Support inclusion, exclusion, and cardinality rules.
- Work on real-time data with real-time rules.
Pricing features:
- Supports multiple sales scenarios such as block-based, cost plus, and account-based, etc.
- Perform real-time price simulations.
- Users can able to perform custom formulae. Example margins and billing.
Quoting features:
- Enables to quote business sales templates and document generation.
- Ability to integrate with automated E-signature tools.
Other added features:
- Promotes guided selling.
- Automated renewal opportunities are available.
- Supports for lightning experience and salesforce scenarios.
- Support developers as well as communities.
Salesforce CPQ Architecture:
The following diagram explains how Salesforce CPQ works,
Salesforce CPQ model consists of relational junctions that enable businesses to integrate their business data in the Salesforce model. These junctions provide better communications and also effective data transformations between the multiple data sources. Adjacent enterprise systems like databases (SQL or RDBMS), ERP/CRM systems, and custom software applications. The basic functions such as from loading the business data to real-time data integration, these relational junctions simply modify the business process by creating customized data and continuously synchronizing the business data. This Salesforce CPQ model also supports hub-centric integration for better data flow. Also provides standard-based SQL interfaces to work with any complex level integration levels.
Top 30 salesforce CPQ Interview questions & answers for freshers & experienced professionals
Salesforce CPQ product configuration features:
Salesforce CPQ configuration describes how product bundles help sales representatives in the sales force. This also explains the difference between a bundle components, configurable bundles, and also explains how to add a configuration to the sales quotes. A bundle is simply a group of product that will be used by the time generating sale quote. When the sales representatives choose to sell the bundle, all the related products come along for the ride. In this tutorial I am going to explain the configuration methods, this bundle can be customized according to your requirements, with adding some bundle component limits to prevent it from impossible salesforce configurations.
It's like a create your own customized burrito. You can create your burrito with the help of the right amount of business data and integrate them for further configuration.
Salesforce CPQ pricing features and methods:
The following diagram explains the Salesforce CPQ pricing features and methods:
The list price is the quote line's initial price. When you quote a product, salesforce CPQ pulls the quote's lines list price from products list price entry in your book. If you select a product’s or quote lines price editable field, you can override the list price in the quote lines editor. The pricing method field in the product record is set to list by default, but you change the pricing method to cost or block pricing.
[Related Article: Salesforce developer course]
Some of the pricing methods are as follows:
List price -> The product’s list price in the price book
Contracted price -> Inherits the value of the contracted price records.
Special price -> Inherits the value of the contracted price or special price assumes the value of the list price.
Prorated price -> this add the Price for Salesforce CPQ products applies the special price
Discount for products -> Salesforce CPQ apply the appropriate discount to the prorated price. The resulting value becomes the regular price.
Regular price -> the regular price inherits the value of the prorated price.
Additional discount -> Entered by the sales rep or through pricing guidance.
![Cloud Technologies, salesforce-cpq-tutorial-description-0](https://hkrtrainings.com/cdn-cgi/image/q=85,f=auto/images/learn.jpg)
Salesforce CPQ Training
- Master Your Craft
- Lifetime LMS & Faculty Access
- 24/7 online expert support
- Real-world & Project Based Learning
Salesforce CPQ quote features:
Salesforce CPQ quote is really a presentation layer of opportunities and opportunity products. Here you can create a PDF to represent the quotes. And there is a page layout available in the form of a template that will cover under some segments to know how you can manage the information to present back to your client.
You can then create the PDF to save it as an attachment file against the quote. You can email this attachment document to your contact straight from the quote. It auto-generates a number every time you create a quote. When you create a Quote it's a record in the database. You have a Quote name. Free from the text, kind of like an opportunity name.
Explore Salesforce CPQ Sample Resumes! Download & Edit, Get Noticed by Top Employers!
Some of the important features of Quotes are:
- Description Field: this is just like the other fields in other standard objects.
- Contact name: When you create a quote, you have a contract role that has the primary checkbox.
- You can also do custom fields: You can also add custom fields if you want to.
- Lead time: You can also add time to give the client an idea of fulfillment time.
Salesforce CPQ productivity features:
Salesforce CPQ offers excited productivity features to produce a valuable result. Let me explain a few points:
- Supports Guided and effective selling -> sales representatives are able to script questions and also guide the sales team/ customers from basic level to advance level.
- Offers to create Customizable products-> this helps the sales team to create their own customized fields when customers search for the products.
- Provide renewable benefits -> Salesforce CPQ has a feature of automatic generation of billing and also drives the pipeline projections and follow up with sales teams.
- Products are available in the modern lighting of user experience scenarios.
- These features are also beneficial for Salesforce communities enabling them to access the CPQ functionality.
- This Salesforce CPQ is also available on the Salesforce1 Mobile device.
What is the Salesforce CPQ process flow?
Salesforce CPQ process flow covers the full end-to-end sales activities of the business organizations. This process flow mainly consists of sales details, account management data, customer order fulfillment, order billing, and account section functionalities.
This figure explains the functionality of Salesforce CPQ process flow,
Steps involved;
- Firstly the sales team will configure the sales and order quotes and create a rough proposal draft for clients to know when the payment is received for the services.
- This process is a completely customer-centric operation and all of them are independent. All these customer-centric operations will be tied together with the single business process.
- The CPQ process flow helps the sales team to create a single platform to collect the customer data, process them and update them in the database to engage with the clients more effectively, this also reduces the error and improves the sales reporting capabilities.
- The Salesforce configuration is listed as a first step in the process flow. Along with this process, some sales activities are also included such as cold calling, sales prospecting, inbound details, and invoice data.
- When it comes to cash flow, the cash for the sales has been collected, allocated and end data will be analyzed and enhances the performances.
- Sometimes a clash occurs between the sales representative and customers due to most of the time the customer assumes that the process of sales is over and they again start to place the new order.
- During this time period, the revenue will be recorded, and also the cash will be applied. Again the entire process cycle will be reported and analyzed.
Salesforce CPQ – QTC flow:
Salesforce QTC is nothing but a Quote-to-cash process. This process covers the end-to-end cash details for sales activities in an organization.
Steps included are:
- Firstly, you have the opportunity to deliver a quote to a prospect.
- Secondly, you will configure the sales offers using software and the price of the offer is automatically and accurately generated. You can then present the quote for the project to your prospect.
- Once the quote is approved, you draft the proposal and agreement.
- The prospect agrees to place an order.
- Then the order will be processed.
- An invoice is created, and the new customer pays.
- The cash for the sale is collected and allocated.
- Keep additional values in the mind for the customer in the form of cross-selling and upselling.
- The data for all points of the process is analyzed and reported.
- Your process is improved for the next sale.
- Integrated Salesforce QTC software can improve your sales and collection activities.
Salesforce CPQ system integration:
Salesforce CPQ is one of the flexible and easy to use software tools. This tool is widely used by the business organizations to improve their sales activities. Most of the companies still have doubts about how to build their data process flow method and pricing details between the ERP system and Salesforce.com.
Methods included in this integration process are;
- Creation of Product master data: product master data is created and maintained in the ERP system because the ERP system helps users to insert additional data for the correct postings activities.
- Product price/rate value: These product price values are typically maintained by the ERP systems they consist of information like discount structure on items/customers or sometimes both.
- Product details: Product details are incorporated between the ERP system and the CRM system. Salesforce discount groups are automatically converted by the data integration and they are transferred into Salesforce (CRM) price books.
- Product and pricing: this information helps to source the logic that you have already configured in the Salesforce CPQ. So the Salesforce CPQ system guides you all to select the right products and you can also optimize the commercial price setup as well as price rules.
- Finally, the salesforce quote and the pricing will be converted and transferred into the ERP system and product configuration or selected in the Salesforce CPQ system.
- Salesforce CPQ software tool can easily be with software platforms like Microsoft Dynamics (AX, CRM, Azure, MS office 365) and also with many non-programming platforms. These building concepts, process automation, and integration improve overall performance and scalability.
Subscribe to our YouTube channel to get new updates..!
Salesforce CPQ tools
Salesforce CPQ is software that brings all the product pricing and customer data in the form of a centralized accessible platform that runs in a real-time environment.
There are 3 basic tools of Salesforce CPQ software:
1) Configurator
2) Pricing
3) Quoting
Features of configurator:
- This enables the product bundle creation with advanced features and options. Features are the bundle categories and options are the bundle components.
- Options can also make an integral part of bundles, accessories, or related products that supports the up-sell and cross-sell methods.
- Support for cardinality functions, inclusion, and exclusion sales rules.
Features of pricing:
Pricing can be divided into 2 types:
1) Cost-plus based pricing -> this pricing type supports the product cost or price.
2) Contracted pricing option -> this supports account-based contracts.
- The real-time pricing method supports the use of the case target price for configurator bundles.
- Custom pricing formulae used for margin calculation and used in the process of pricing or discounts.
Features of quoting:
- This quoting integrates the document generation.
- Quote templates: in this case, different sections can be configured such as header, footer, and quote terms.
- Also integrates the automatic E-signature tools.
How does the Salesforce CPQ tool work?
As I said earlier Salesforce CPQ system tools help to improve the sales performance, reduces errors, scalability, and produce accurate data.
Steps:
1. Buy the CPQ software tool.
2. The sales team will help you to select the product structure.
3. The orders and invoice management will be defined with product structure.
4. Once the implementation is completed, they go live.
5. The sales team helps the customers make use of the tool and enrich the selling process and win deals in a shorter time.
To gain in-depth knowledge with practical experience in Salesforce IOT, Then explore hkr's Salesforce IOT Certification Course!
Salesforce CPQ API model:
The attributes used in Salesforce CPQ API models are;
- Record -> This represents the model.
- AmountDiscountprorated -> it gives pricing and discount information.
- ParentGroupKey -> The unique key of this line’s parent, if this line is part of a bundle.
- Key -> Each quote line and group has a key that is unique amongst all other keys in the same quote.
- Upliftable -> True if this line is an MDQ segment that can be uplifted from a previous segment.
- Configuration Type -> indicates the configuration type of the product that this line represents.
- ConfigurationEvent -> Indicates the configuration event of the product that this line represents.
- ReconfigurationDisabled -> if the condition is true, this line cannot be reconfigured.
- ProductQuantityEditable -> the number of decimal places used for rounding this line’s quantity.
- NetNonsegmenttotal -> the net total for all the non-dimensional quote lines.
- QuantityEditable -> indicates whether the quantity is editable. Editability is determined by the quantity and bundled fields on the option record.
- ProductQuanityScale -> Returns the value of the quantity scale field for the product being configured.
- ReconfigureDimensionWarning -> Reconfigures the warning label for an option with segments.
- HasDimension -> Indicates whether this option has dimensions or segments.
- IsUpgarde -> indicates whether the product option is related to an upgrade product.
To gain more Knowledge About Salesforce CPQ Tutorial, visit the below link !
Guidelines for setting up Salesforce CPQ software:
The following are the important procedures to set up your Salesforce CPQ software in your organization:
Approval process:
Make sure that the org chart diagram flows; so that each individual person agrees on how a cash quote moves from one approval level to another and quote attributes move into each decision tree.
Company logo:
Design the company logo that you want to show in your quote document and add it to a folder in the salesforce document.
Discount schedule:
You can also create volume discounts based on the quantity of the product when you add these products to your salesforce quotes; CPQ applies a proportional discount to the grand total.
Multi-lingual considerations:
Determine the best plan for your non-English speaking users. You can also install Salesforce CPQ in a multilingual instance.
- Package settings.
- Basic page layout setup.
- Product and price list.
- Quote template and quote status.
- Sandbox setup.
Advantages of Salesforce CPQ:
The following are the key benefits that CPQ brings to the sales team:
- Streamlines the sales process.
- Automated creation of sales quotes.
- Helps manage complex product mix and pricing rules.
- Helps to create a guided selling.
- Boost the productivity of sales representatives.
- Drives customer satisfaction.
- Offers enhanced and rapid implementation without wasting time on any other relevant things.
- Supports an individual to go for the creation of much accurate and better price quotes.
- Business organizations can get a chance to perform a quick analysis of the percentage of profits or losses.
- Improved accuracy and area of perfections.
- Supports the most personalized experience.
- Reduces sales turn-around time.
[ Related Article: iot certification course ]
Conclusion:
In this Salesforce CPQ tutorial blog, you might have learned the benefits and the features of Salesforce CPQ. Salesforce CPQ software tool most often used by the sales team in the organizations to reduce errors and produce accurate sales reports. Most of the CRM based companies have been started adopting Salesforce CPQ to overcome the sales hurdles. I hope this article may help a few of Salesforce developers as well as Salesforce community forums.
Other Related Articles:
Salesforce Tutorial
Through using Salesforce, developers can create an application on the cloud and share it with multiple organisations across multiple domains. Just find it out How Salesforce Helps in Boosting Your career opportunities and Success.
For more detailed information on the salesforce, advantages, purpose of using it from business perspectives, and services and products offered by the salesforce go through this click on What is Salesforce?
Salesforce Certifications:
Salesforce Certification is a definitive benchmark that perceives the abilities, skill, and genuine ability of the present cloud masters. Are you an Executive who keeps Salesforce running easily, or a Developer who manufactures new applications to modify and expand abilities? Maybe you're an Execution Expert or Marketing Specialist answerable for guaranteeing the correct arrangements are conveyed for most extreme adequacy. Or on the other hand it is safe to say that you are an Architect who plans elite specialized systems? Salesforce accreditations develop your resume and feature your abilities. Demonstrate your hands-on involvement in Salesforce and get a serious edge that prompts new chances.
Other Salesforce Articles:
Salesforce Service Cloud:
Salesforce Service Cloud is a customer relationship management ( CRM) application for superior customer service. Salesforce 's Service Cloud is based on its Sales Cloud product, a popular CRM platform for sales professionals.
Service Cloud allows businesses to optimize service processes, streamline workflows and identify key posts, topics and experts to help customer service providers. The goal is to cultivate one-to-one marketing relationships with customers through multiple platforms and devices.
Service for Apps allows the incorporation of tech support tools into applications. In-app mobile support can include live video chat, screen sharing and on-screen driven support. The platform is also integrated with the Salesforce Group Cloud, which offers further channels of contact for agents and customers.
As per Salesforce, Service Cloud is the world's top customer service tool. In order to know more details on salesforce service cloud like, why it is used, services and implementation details of the salesforce service cloud just go through the salesforce service cloud in depth here.
Related Article: salesforce service cloud
Salesforce Marketing Cloud
Business communications have revolutionized today. Artificial Intelligence has made this easier with automation in every business communication. Have you ever wondered how modern businesses communicate with their customers at the right time in the right way? It is through AI-driven marketing automation.
Salesforce Marketing Cloud is one such initiative assisting businesses with efficient and effortless marketing taken up by Salesforce, one of the most trusted CRM (Customer Relationship Management) platforms in the world. They offer various marketing tools that enable you to personalize your marketing strategies. No matter whether you handle a B2B or B2C firm, Salesforce Marketing Cloud has a solution for marketing automation for all types of businesses. The tools allow you to analyze your market with a 360-degree perspective and create a strategy that will give your business higher organic leads.
Let's have a look at the tools and services that are offered by the Salesforce Marketing Cloud in detail by clicking on the link.
Salesforce CRM:
Customer Relationship Management ( CRM) is "a system for managing all the business relations with customers and potential clients. The plan is simple: to enhance business connections. A CRM framework helps businesses stay connected to customers, optimise efficiency and increase profitability," according to Salesforce.
At the grassroots level, CRM helps businesses understand consumer expectations and data and promotes deeper customer growth and retention.
Salesforce was the first organisation to successfully introduce cloud-based CRM applications. As a cloud-based service, Salesforce capitalizes on the advantages of data storage and connectivity from anywhere to create a customer base.
Cloud-based software enables businesses to monitor live data, group conversations and manage insights from anywhere-and to keep up-to-date pace and accuracy.
To know information on salesforce CRM, reasons and characteristics for adopting salesforce CRM, working on salesforce CRM please go through the Salesforce CRM Tutorial here.
Salesforce Architecture:
Salesforce provides highly personalized service to its clients, staff and partners. This framework is used to customise the standard functionality and build custom websites, components, applications, etc. It's also achieved quicker, primarily because of the superb architecture on which it's designed. Below image depicts the briefing of the salesforce's architecture.
For more information on the Salesforce Architecture click here.
Salesforce Components:
- In the TAB menu all tabs are arranged in a row.
- In the All TAB menu one can find all the tabs available in salesforce.com.
- In the More TAB menu you can find more tabs available in salesforce.com.
- In the user menu one can easily change the profile settings.
- In the sidebar menu, you can find sections such as build, monitor, jobs, logs, etc.
- The application menu allows shuffling between applications.
- The search menu helps to perform search in Salesforce.
Creating a Salesforce Application:
Salesforce applications are the collective units of tabs that work together to give outstanding performance. Salesforce applications are of two types namely custom app and service cloud console.
Quick steps to create an application in salesforce: They are:
Step1: In order to create an application first you need to go to setup>App Setup>Create>Apps>click on New>select the custom application radio button > provide the name of the app > click on the Next button > select an image from the document object > select the objects > click on the visible checkbox > then click on Save.
Step2: In order to append your application to other apps, or any profile, just follow the step2. If you would like to change the image for the app, click on Insert an Image and upload from Documents, and if you like to append several tabs to your app, you can select the tabs from Available Tabs and click on Add; the selected tabs will be moved to the Selected Tabs section.
Step3: If you want to append your application to any other profile as shown in below image just tick the checkboxes and click the save button.
Installing the AppExchange application:
Here, we are going to learn how to install the app exchange applications for hassle-free. Follow the below-mentioned steps to get your app installed.
- The first thing is you need to login into your salesforce account, click on the app menu and select the AppExchange, this will take you to the appexchange landing page as shown below.
- Next you can search for the app you need and select it and click on the app it knows its details and then click on the Get it now button in green color.
- So you need to select the environment where the app needs to be installed and click on next by accepting the terms and conditions and then confirm the install button.
- After that, enter your environment credentials and log in. You would directly be navigated to Package installation details. If you wish to continue to install, click on the Continue button and then click on Next
- In order to give access you need to select security levels, then click on Next and, finally, click on the Install button. Once your installation is complete, you would be notified by an email.
- Now, if you desire to verify if the app is installed or not, go to Setup > Build > click on Installed AppExchange
Salesforce Data Modelling
The Salesforce Platform stores information in related tables. The data in these tables contain the data for the layout of the application itself as well as the information provided by the user. For example, right to produce and account settings are already in-built as a relational table. But you can also build your own tables to store information unique to your sector, such as the 'dispatch schedule' for a week if you are a delivery company. Salesforce data modeling is categorized into objects and fields where there establishes a good relationship between them.
Salesforce objects are database tables that allow you to store your organization-specific data. These relational tables are generally pointed to as API objects or Salesforce objects only. There are three kinds of Salesforce items in there.
Here we are going to learn the Standard objects and data modelling, advantages, pros and cons of data modeling in salesforce. For more details go the link Salesforce Data Modelling
Salesforce Custom Fields:
In order to create custom fields, you need to create custom objects. Custom objects are those created by users. It offers knowledge that is specific and important to their organisation. It's the heart of every kind of programme. It offers a data exchange structure. The following are properties of custom objects. They are custom fields,relationship to another page, page layouts, and a custom UI tab, etc.
Creation salesforce custom object:
In order to create salesforce custom objects, we need to follow a few steps. They are:
- Go to setup>Build>create>Objects path then click on new custom object button and then enter the details related to that custom object.You cna enter the record name as a data type in two formats such as text and auto-number. Moreover, you need to checklist a few options while creating the custom objects such as allowing reports, activities, tracking field history, etc.
- You can do the custom object creation in two modes namely development and deployment modes, select the one you prefer.
- When you are creating the custom objects for the first time, there are few options to be set such as adding notes, launching a new custom tab wizard, etc.
- After doing all settings, click on the save button.
If you do not pick 'Open new custom tab wizard' from the development page of the object, the object will be saved even without the presence of the tab. In that case, first of all, you have to make a tab for this object. On the other hand, if you choose this option, the object will be stored including a tab that will be transparent to you.
Now the custom objects are created, next you need to create custom fields for the custom objects.
Just follow the following steps to create custom fields for the custom objects.
- To create the field in the custom object, go to the Setup menu.
- Next go to the > Build > Create > Objects.
- Now, select the object in which you want to create custom fields.
- Then after go to the Custom Fields & Relationships section and select New.
- Now you need to create the custom fields for the particular object with reference to the particular data type and then click next.
- Now fill the details in the opened tab and then click next.
- Also set visibility for the profile filed.
- Then after, click save and new button, in order to add new custom fields.
Salesforce Dashboard:
Dashboards offer more perspectives than reports, as they aggregate data from multiple reports to show a description of the results. Looking at several reports at a time allows the ability to merge the findings quickly. Also, dashboard summaries help us decide on action plans faster. The dashboards may include maps, graphs and tabular data.
Now let's explore the steps to create the salesforce dashboard. Salesforce Dashboard
- As the first step go to the dashboard button in the salesforce homepage, click on the new dashboard and fill the details and click create button.
- In the step two, add components to the dashboards. Components are graphical objects which present the summarized or tabular data with visual indicators like colors, etc.
- Now you can see the added components and you can resize the components for better visibility.
For more information on the Salesforce Dashboard go through this link.
Creating Reports in salesforce:
Similar to that of the salesforce dashboard creation, you need to create reports in salesforce by login into you're official account in the salesforce.com. By default the salesforce comes with standard folders, you need to create the new report folder.
Steps for creation of new report folder:
- After logging in click on the reports tab and then click on the new report button.
- Then after selecting the report type and clicking on the create button.
- Then click on the save button where you report will be created with some predefined customization options.
Salesforce Governor Limits:
In order to safeguard the resources from the external sources, force.com set some limitations for the execution of its code. This concept is carried out by the salesforce because of its multi-tenant feature where the organization and its clients are sharing the data. So if the governor limits are not met it will halt the program execution and it is a mandatory factor to ensure your code is reliable, scalable and free from violating the governor limits. Moreover, the setting of such governor limits is referred to as single trigger execution.
For in-depth information on why one needs to set the governor limits, types of governor limits, benefits of using them please go through the Salesforce Govenor Limits tutorial here.
Process Builder in salesforce:
Process builder is an important tool for the salesforce developers from the salesforce environment. Process Builder Salesforce is essentially an interactive application which helps in monitoring the sequence of tasks or determining the record requirements.
Process builder comes with three types of processes for automation namely a change in the record, event process, and an invocable process, etc. and these processes constitute the following criteria such as determining when the action group needs to be executed, action groups that state an immediate and scheduled action.
Related Article: How to Create a Process Builder in Salesforce
Batch Apex in salesforce:
In order to process the bulk amounts of data and to delete the unused data, batch apex plays an important role. In this tutorial, we are going to learn about batch apex, why it is used, advantages, batch class, creating apex batch class in salesforce, etc.
Batch Apex in Salesforce is uniquely built for a large number of records, i.e. here the data will be separated into small batches of records, and then analysed. In other words, the Batch class in Salesforce is explicitly designed to process bulk data or records together and has a governor cap greater than the synchronous code.
Advantages of batch Apex in salesforce:
The following are the advantages of the batch apex in salesforce. They are:
- It helps to stay the code exception within the governor limits.
- If a batch is not executed properly then batch apex halts the execution of certain batches.
- Using Batch Apex classes large amounts of data are processed very easily.
- With the help of user interfaces one can schedule the batches to run over the time periods.
- Batch apex classes are used to implement asynchronous operations.
- You can break down the larger records into small records for fast and better execution.
Reasons for using batch apex instead of normal apex in salesforce:
- There are several reasons for using the batch apex. They are:
- Batch apex executes more SQL queires than normal apex.
- Batch apex retrieves more SQL queries than normal apex.
- The heap size of normal apex is 6 MB and batch apex is 12 MB.
- In the process of execution of bulk records, normal apex encounters more eros when compared with batch apex.
Batch Class in salesforce:
In order to use batch class, first the batchable interface needs to be implemented with the following 3 methods.
Start method: it is used to start the process for calling the batch data.
Syntax: global void execute(Database.BatchableContext BC, list
Execute method: This method executes after the Start method, and it does the actual processing for each batch, separately.
Syntax: global void execute(Database.BatchableContext BC, list
Finish Method: This is the last method for performing the operations.
Syntax: global void finish(Database.BatchableContext BC) {}
Creating an apex batch class in salesforce:
The following are the steps to create an apex batch class in salesforce. They are:
- In the salesforce setup search for the apex batch classes.
- Next open the apex batch classes and create a new apex batch class.
- A screen will be displayed in order to write the code.
- Immediately after writing the code, you need to go to the developer console, click debug and then open the anonymous execute window.
- A box will open up, you need to enter the following code for processing: batchAccountUpdate b = new batchAccountUpdate(); and database.executeBatch(b) and then click on the execute button.
- After clicking the execute button output will be displayed showing the status.
Workflow in salesforce:
Workflow is referred to as a business logic engine that automates certain actions based on some specific conditions. If the conditions are met only, the actions are executed otherwise the records are just saved without performing any action.
Now, you are going to learn about the components and configuration of workflow criteria.
Components of workflow:
The workflow rules in salesforce are commonly categorized into two components namely criteria and actions.
Criteria:Criteria are nothing but the conditions to meet inorder to perform a test. For example, you can consider if statements.
Actions: An action performed after meeting certain criteria. For example in if/then statements, then is the action in the workflow.
Basically the actions are classified as immediate and time dependent actions. Immediate actions are those that are executed immediately after a record is created or edited. Time dependent actions are those that are executed after a time interval.
The following are the criteria evaluation steps.
Created:If the criteria is met after the record is created then an action is executed.
Created and edited:when the record is created and updated or edited, then action is executed.
Created and every time it’s edited to subsequently meet the criteria:If the record created does not meet the criteria, then action is not executed. So we need to edit to make it meet the criteria, if the criteria met then action will be executed.
Workflow rules possess a number of actions to be performed. Those actions can be easily triggered with the help of the workflow rules.The actions include:
- Assigning a task to someone
- Doing a field update
- Sending an email
- Sending an outbound message
Configuring the workflow rule criteria:
Here, we are going to learn the configuration of workflow rule criteria.
First login into you're salesforce account a screen will appear as follows:
- On the left side of the screen, you will see the process automation, check for the workflow rules and click it.
- On the new screen displayed, you can click on a new rule for creating new rules as shown in below image.
- You need to select an object now. You can choose any object from the drop-down menu. For practice, select Lead as the object:
- You need to configure the workflow rules by filling some details as shown in the below image and then click the save button.
- Here you need to add a Workflow Action. Select the action from the drop-down option , and then click on Done.
- You need to create an email alert, fill the details and click the save button.
- Next click on the done and then activate to activate the workflow rules.
- Next click on the +button as shown in the below image, select the lead or any object name form the list available.
- Just click on the new button to create a new recordenter all the required fields and click save button. After that a screen will be shown confirming about the data to be displayed, then email will be sent.
- Similarly, you can add time triggers for the actions to be performed, also create new email alerts and click the activate button.
Your workflow rules are thus created successfully.
Triggers in salesforce:
Apex is one of the many programming languages that Salesforce uses to perform actions. Since the Salesforce triggers are built with Apex code, they are also called Apex triggers. An action that needs to be performed before or after data manipulation language (DML) events occurs is called a trigger. The Salesforce triggers are used to trigger Apex code before or after changes to Salesforce records like insertions, updates, or deletions.
In this tutorial we are going to learn about the triggers in salesforce, types of triggers, syntax of triggers, context variables in triggers, context variable considerations and summing up the points.
The Salesforce triggers help in defining custom actions on the Data. They are used to perform operations based on specific conditions. We can define triggers for top-level standard objects like contact, account, custom objects, standard child objects, and custom objects. When we create triggers, they will be active by default. So, when a database event occurs, the Salesforce will fire the active triggers automatically. Triggers will be helpful when we can't perform some tasks with point-and-click tools in the Salesforce user interface.
For more information regarding the Triggers in Salesforce please go the click specified.
Salesforce Lightning
Salesforce is an advanced CRM framework that is used by organizations for advertising, distribution, support and business teams. Salesforce Lightning is a component-based application development platform for Salesforce. We can create sensitive applications that are appropriate for any platform. We can integrate templates, labeling elements, and configure apps only with a few clicks. It offers an interactive approach to the creation of applications where we can create single-page applications.
In the salesforce lightning tutorial we are going to learn about the following concepts such as:
- Introduction to salesforce lightning
- Features of salesforce lightning
- Advantages of salesforce lightning
- Setting up the lightning environment
- Creating the lightning component
- Creating the first lightening application
- Attributes and expressions in lightning components and
- Conclusion
For further information on the salesforce lightning please go through the Salesforce Lightning here.
Visualforce in salesforce:
Visualforce pages are web pages belonging to Salesforce. These web applications are produced using a special mark-up tag-based language. It is identical to HTML, however its main usage is to view, view and update your organization's data. The website is viewed using a URL close to that of the conventional web server page.
Each tagging in visual force languages corresponds to a user interface element, such as a page segment, a list view or an object area. Interestingly, it can be easily molded into HTML markup, CSS style, Java libraries, etc.
For more information on the visual force please go through the Visualforce in Salesforce here.
Controllers in salesforce:
Controllers are the ones which provide Visualforce pages with business logic. It recognizes data from the user as input values. Controller manipulates the feedback of the user and performs actions on behalf of the user. The tampered user data is forwarded to the browser as a new tab.
Visualforce includes a variety of built-in controllers which could be used to manipulate and view data. It mainly works on the MVC (Model-View-Controller) approach. The controllers communicate with the database and take the data out of the database to access the data via the apex page web page.
We need a record ID to show a particular record or group of records. When integrated with other Visualforce posts, the ID will flow immediately to the controller tab. But on the standalone tab, we have to explicitly define the record ID to see the controller functioning.
For more information on the controllers, please go through the Controllers in Salesforce here.
Conclusion
This salesforce tutorial has covered all the concepts in detail. It will help all types of users to get proficient in the salesforce key concepts. Moreover it is built to handle customer-focused data and sales information of the company. It also offers features to customize its built-in data structures and GUI to meet the unique needs of a company. More recently, IOT (Internet of Things) has started providing access to the CRM network.
Related Articles:
About Author
Ishan is an IT graduate who has always been passionate about writing and storytelling. He is a tech-savvy and literary fanatic since his college days. Proficient in Data Science, Cloud Computing, and DevOps he is looking forward to spreading his words to the maximum audience to make them feel the adrenaline he feels when he pens down about the technological advancements. Apart from being tech-savvy and writing technical blogs, he is an entertainment writer, a blogger, and a traveler.
Upcoming Salesforce CPQ Training Online classes
Batch starts on 30th Jul 2024 |
|
||
Batch starts on 3rd Aug 2024 |
|
||
Batch starts on 7th Aug 2024 |
|