<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nour el houda MEHADJIBIA on Medium]]></title>
        <description><![CDATA[Stories by Nour el houda MEHADJIBIA on Medium]]></description>
        <link>https://medium.com/@n.mehadjibia?source=rss-ff04d9110734------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XReYCd7sfW3Mvf73jlMJew.jpeg</url>
            <title>Stories by Nour el houda MEHADJIBIA on Medium</title>
            <link>https://medium.com/@n.mehadjibia?source=rss-ff04d9110734------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 22:44:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@n.mehadjibia/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Salesforce Unlocked Packages]]></title>
            <link>https://medium.com/altius-services/salesforce-unlocked-packages-87327d8def94?source=rss-ff04d9110734------2</link>
            <guid isPermaLink="false">https://medium.com/p/87327d8def94</guid>
            <category><![CDATA[packaging]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[innovation]]></category>
            <dc:creator><![CDATA[Nour el houda MEHADJIBIA]]></dc:creator>
            <pubDate>Thu, 04 Jan 2024 16:22:17 GMT</pubDate>
            <atom:updated>2024-01-04T16:22:17.090Z</atom:updated>
            <content:encoded><![CDATA[<h4>Step By Step guide to create and release a Salesforce Unlocked Package</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eCIg3E2lYad2N4bnFsNNKg.png" /></figure><p>Salesforce Packages are typically utilized to move metadata from one Salesforce org to another. A package can be described as a set of features and customizations (refer to <em>Figure 1</em>) grouped together and ready to be installed in different orgs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*84zZJKwtlZtjnlJ3UqZRVA.jpeg" /><figcaption>Figure 1 : Package exemple</figcaption></figure><p>Unlocked packages are a category of Salesforce packages that can contain almost all types of Salesforce metadata (note that some types are not handled by unlocked packages). They can be installed in any type of org :</p><ul><li>Scratch org</li><li>Sandbox</li><li>Developer edition</li><li>Trial org</li><li>Production org</li></ul><p>Upon installation, the admin has the ability to make direct changes to the metadata, which is why they are referred to as ‘unlocked. Once uninstalled, all metadata contained in the unlocked package gets deleted from the org. To uninstall unlocked packages successfully some conditions need to be met (check this <a href="https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_unlocked_pkg_installed_pkgs_uninstall.htm">article</a>).</p><blockquote>Do not use unlocked packages if you are planning to distribute your app on AppExchange, they are especially suited for internal business apps.</blockquote><p>Now that we understand what are unlocked packages, it’s time to move to the cool part, creating some unlocked packages :)</p><h3>Before we start</h3><p>Before we start, you must make sure everything is set up correctly :</p><ul><li>You need a Dev Hub org (production or developer edition). In your org, enable “<em>Dev Hub”</em> and “<em>Unlocked Packages and Second-Generation Managed Packages”.</em></li><li>Your user needs to have the “<em>Create and Update Second-Generation Packages”</em> permission (If you’re connecting with an Admin profile then you already have it).</li><li>On your computer, make sure <em>Salesforce CLI</em> is already installed.</li><li>On your computer, make sure <em>Visual Studio Code </em>is already installed.</li></ul><h3>Follow these steps</h3><h4>1- Create DX project</h4><p>I’ve already created a DX project and push it to GitHub. You can test with my project :</p><pre>git clone https://github.com/n-mehadjibia/Unlocked-Package-Project.git</pre><p>This project contains an Apex class “MathService” and its test class “MathServiceTest”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*Ujcf4lTQdshpwY-U6w0Rfg.png" /></figure><p>If you want to create your own project, follow the steps in this <a href="https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_create_new.htm">article</a>.</p><h4>2- Authorize a Dev Hub org</h4><p>I’m using a developer edition org as my Dev Hub. From VS code menu go to :</p><ul><li>View -&gt; Command Palette</li><li>On the search bare type : <em>SFDX : Authorize a Dev Hub</em></li><li>Click on : <em>SFDX : Authorize a Dev Hub</em></li><li>Choose an Alias for your Dev Hub then press enter</li><li>Finally, you will be prompt to login to your Dev Hub org.</li></ul><p>Here’s another way to do it :</p><pre>sf org login web --set-default-dev-hub --alias UnlockedPackageDevHub</pre><h4>3- Create a scratch org</h4><p>In this step we are supposed to develop and test the package, we can also retrieve from the scratch org the components that we want to include in our package. Here’s how to create a scratch org :</p><p>From VS code menu go to :</p><ul><li>View -&gt; Command Palette</li><li>On the search bare type : <em>SFDX : Create a default scratch org</em></li><li>Click on : <em>SFDX : Create a default scratch org</em></li><li>Choose an Alias and a duration for your scratch org</li></ul><p>Here’s another way to do it :</p><pre>sf org create scratch --definition-file config/project-scratch-def.json --duration-days 30 --alias MyScratchOrg --target-dev-hub UnlockedPackageDevHub</pre><h4>4- Select the scratch org as your default org</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1a2xaZXXpHDF3kkPQLpLCg.png" /></figure><h4>5- Deploy the project in the scratch org</h4><pre>sf project deploy start -d ./force-app</pre><blockquote>You have to make sure that your test classes are running correctly and covering at least 75% of your package’s Apex code otherwise you won’t be able to release the package later.</blockquote><h4>6- Package creation</h4><pre>sf package create --name &quot;My Unlocked Package&quot; --path force-app --package-type Unlocked</pre><p>Your DX project’s “<em>sfdx-project.json</em>” file will be updated after the creation of the unlocked package.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z04eAgyDj0JBrRn1yRP7fQ.png" /></figure><blockquote>The Dev Hub org against which you run the <em>sf package create</em> command becomes the owner of the package. If the Dev Hub org associated with a package expires or is deleted, its packages will no longer work.</blockquote><h4>7- Package version creation</h4><p>In order to install our unlocked package in Salesforce orgs we need to create a package version, but before that let’s update the version name and the version number in the “<em>sfdx-project.json</em>” file :</p><pre>&quot;versionName&quot;: &quot;Winter 24&quot;,<br>&quot;versionNumber&quot;: &quot;1.0.0.NEXT&quot;</pre><p>Here’s the sfdx command that creates a package version :</p><pre>sf package version create --package &quot;My Unlocked Package&quot; --path force-app --installation-key test1234 --wait 10</pre><blockquote>Don’t forget to change the installation key (it’s value in the previous sfdx commande was <strong>test1234</strong>) and to memorize it, we will need it during the installation of the package. You can create a package version without an installation key by adding ( — installation-key-bypass) to your package version create sfdx commande.</blockquote><p>After version creation, your project “<em>sfdx-project.json</em>” file will look like this :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q_Ya79klLAs1tRiG1Io9fw.png" /></figure><blockquote>Each newly created package version is marked as Beta version, therefore it cannot be installed in production orgs, it can only be installed in : dev, sandbox and scratch orgs. Solely released package versions can be installed in production orgs.</blockquote><h4>8- Package release</h4><blockquote>Package versions that can be released must have an Apex code coverage of at least 75%. Code coverage computation is run during the creation of a new package version.</blockquote><p>To compute code coverage we must add “ — code-coverage” to the “sf package version create” commande :</p><pre>sf package version create --package &quot;My Unlocked Package&quot; --path force-app --installation-key test1234 --wait 10 --code-coverage</pre><p>Now we can release the newly created package version :</p><pre>sf package version promote --package &quot;My Unlocked Package@1.0.0-2&quot;</pre><h4>9- Install the package in an org</h4><p>Here’s how our “<em>sfdx-project.json</em>” file looks like right now :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mfry3TdgUr0a5P76nt5s2Q.png" /></figure><p>Package version 1.0.0–1 is a Beta version, where as package version 1.0.0–2 is a released version.</p><p>Let’s install package version 1.0.0–2 in the dev hub org that we’ve authorized in step 2 :</p><pre>sf package install --wait 10 --publish-wait 10 --package &quot;My Unlocked Package@1.0.0-2&quot; --installation-key test1234 --no-prompt --target-org UnlockedPackageDevHub</pre><blockquote>Beta versions and released versions are installed in the same way.</blockquote><p>Now, if you open the dev hub org and go to : Setup -&gt; Apps -&gt; Packaging -&gt; Installed Packages, you will find “My Unlocked Package” among the installed packages :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GHOD2tYwYUqTcSrW4KRojg.png" /></figure><p>If you want to uninstall the package, simply click on “Uninstall” :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*--FCN3itMoO2ZRG8Vh2kHA.png" /></figure><blockquote>As we mentioned in the intro, to uninstall unlocked packages successfully some conditions need to be met (check this <a href="https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_unlocked_pkg_installed_pkgs_uninstall.htm">article</a>).</blockquote><h3>Conclusion :</h3><p>In this article, we covered the basic workflow of Unlocked Packages creation, release and installation. If you want to learn more about Unlocked Packages, I recommande you read :</p><p><a href="https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_unlocked_pkg_intro.htm">Salesforce official documentation for Unlocked Packages.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87327d8def94" width="1" height="1" alt=""><hr><p><a href="https://medium.com/altius-services/salesforce-unlocked-packages-87327d8def94">Salesforce Unlocked Packages</a> was originally published in <a href="https://medium.com/altius-services">Altius services</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Salesforce CPQ]]></title>
            <link>https://medium.com/altius-services/introduction-to-salesforce-cpq-76b648145871?source=rss-ff04d9110734------2</link>
            <guid isPermaLink="false">https://medium.com/p/76b648145871</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[cpq-solution]]></category>
            <category><![CDATA[crm]]></category>
            <dc:creator><![CDATA[Nour el houda MEHADJIBIA]]></dc:creator>
            <pubDate>Tue, 25 Apr 2023 17:18:11 GMT</pubDate>
            <atom:updated>2023-04-25T17:26:29.882Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oKb3GHHvD4nlzmujLZKzrA.png" /></figure><p>Salesforce CPQ is one of the major Configure, Price, Quote (CPQ) solutions in the market. It is typically used when the product configuration is more complex than what standard Salesforce can normally support.</p><p>Throughout this article, we walk you through the core functionalities of Salesforce CPQ, but before diving into that let’s take a brief look at the Configure, Price, Quote (CPQ) process.</p><h3>Configure, Price, Quote (CPQ) process</h3><p>CPQ is a subprocess of the sales process. Here is a generic representation of the sales process (this can change as per the companies’ business needs) :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zvnk1wbmqxZFiHLSKCgdog.jpeg" /></figure><p>When a new opportunity is created, the sales rep needs to:</p><ol><li><strong>Configure:</strong> Put together the list of products that answer the customer’s need.</li><li><strong>Price:</strong> Find the right price for the products. Apply discounts if any.</li><li><strong>Quote:</strong> Send the quote to the customer to be signed.</li></ol><p>As the CPQ process gets more and more complex, it gets harder and harder for sales rep to create accurate quotes. Salesforce CPQ provides sales teams with a set of automations and tools that facilitate and enhance the CPQ and Sales processes. In the coming sections, we explore these automations and tools.</p><h3>Configuration with Salesforce CPQ</h3><h4>Product Types</h4><p>There are two types of products in Salesforce CPQ : <strong>Non-subscription</strong> and <strong>subscription</strong> products. The following table illustrates the main differences between these two types :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*74HVamqprrYKHdSu9vjnJw.png" /></figure><h4>Product Bundling</h4><p>A bundle is a collection of products that are sold together as a package. For example, the laptop, power cable, mouse, keyboard and warranty can all be bundled together.</p><p>Salesforce CPQ allows to create bundles by adding <strong>product options</strong> to a product that becomes then a <strong>bundled product</strong>. In the previous example, the laptop is the bundled product, the power cable, mouse, keyboard and warranty are product options.</p><p>Salesforce CPQ also allows to group product options into <strong>features</strong> and to group features into predefined <strong>categories</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R9yZCKHrQL6IjE-vYq-0CA.png" /><figcaption>Product Bundle</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IVeUL4t9nEngyVMXM49LmQ.png" /><figcaption>Product Bundle Configuration</figcaption></figure><h4>Product Rules</h4><p>Product rules are a set of conditions that need to be respected by the list of products selected on a quote in order for the quote to be valid. Here are some examples of product rules:</p><ul><li>Product D can be sold only if product E is sold.</li><li>Product F cannot be sold with product G.</li><li>Product H is sold starting from 20 units if product I is sold.</li></ul><p>There are four types of product rules in Salesforce CPQ :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P8huj-DWTx9gThrS9h72sA.png" /></figure><h3>Pricing with Salesforce CPQ</h3><h4>Pricing Tools</h4><p>Salesforce CPQ can change the product price that is retrieved from the price book using different pricing tools.</p><p><strong><em># Block Pricing</em></strong></p><p>In block pricing,<strong> </strong>the price of a product depends on the range of the quantity that is being purchased. Quantities inside the same range get sold with the same total price. Here is a block pricing configuration example :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n29Xj5Re1nqi9y067LRb8Q.png" /></figure><p>If the customer requests 150 printer papers, the total price will be 50 $. And if he requests 180 printer papers, the total price will still be 50 $ because 150 and 180 fall in the same range.</p><p><strong><em># Percent Of Total (POT) Pricing</em></strong></p><p>In percent of total (POT) pricing,<strong> </strong>the product price is calculated as a percentage of the sum of other products’ total price. For example, when you go to a restaurant, you calculate the tip as a percentage of your total bill amount.</p><p><strong><em># Option pricing override</em></strong></p><p>If a product is present as a product option inside a bundle, then the product option price will override the product price. For example, the keyboard unit price if sold individually is 100 $, and when it’s sold inside the laptop bundle is 80 $.</p><p><strong><em># Cost plus markup pricing</em></strong></p><p>In cost plus markup pricing, the product price starts with a base price (cost), then the sales rep can adjust it by adding a markup (fixed amount or percentage of the cost). For example, it costs 30000 $ to fabricate a car but it was sold to a customer for 40000 $. In this case the cost is 30000 $ and the markup is 10000 $.</p><p><strong><em># Contracted pricing</em></strong></p><p>The product price can be adjusted for a certain customer by adding a contracted price on the customer’s account record. For example, the laptop unit price is 1000 $ but it’s sold to customer XXX for 950 $.</p><h4>Pricing Rules</h4><p>Pricing rules are used to conditionally update the value of any field in the quote, quote line or quote line group. They are useful when you need product values to change dynamically based on other products in the quote. Here are some examples of pricing rules:</p><ul><li>If product A ’s quantity is greater than 10, then Product B should get a 5% discount.</li><li>If product C is present on the quote and the quote start date is less than 01–01–2025, then product D ’s unit price should be updated to 50 $.</li></ul><h4>Discounting Tools</h4><p><strong><em># Discount Schedule</em></strong></p><p>Discount schedule is used to create volume discounts based on quantity or term. Here is an example of a discount schedule :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2D14rdbn95Xt0CausTakcA.png" /></figure><p>There are two types of discount schedules:</p><ul><li><strong>Range :</strong> Based on the tier in which the quantity/term falls a discount will be applied</li><li><strong>Slab :</strong> The product’s quantity/term will be distributed on the tiers and different discounts will be applied.</li></ul><p>Product A ’s unit price is 20 $, let’s assume that the customer wants to buy a quantity of 150 units:</p><ul><li>Discount schedule type is range :</li></ul><p><strong>Total price = 150*20*(1–0.2) = 2400 $</strong></p><ul><li>Discount schedule type is slab :</li></ul><p><strong>Total price = 50*20*(1–0.05) + 50*20*(1–0.1) + 50*20*(1–0.2) = 2650 $</strong></p><p><strong><em># Additional discounts</em></strong></p><ul><li><strong>Manual discount :</strong> Allows the sales rep to apply their own custom discount on the quote, quote line group or quote line.</li><li><strong>Partner discount :</strong> Extra discount on the quote based on the opportunity’s partner.</li><li><strong>Distributer discount :</strong> Extra discount on the quote based on the opportunity’s distributor.</li></ul><h3>Quoting with Salesforce CPQ</h3><h4>Quotes</h4><p>In Salesforce CPQ, quotes are associated with opportunities, they contain the products that your customer is interested in, associated with the prices and different discounts that your company proposes.</p><p>The following diagram represents a simplified Quote-Opportunity data model in Salesforce CPQ. You should note that Salesforce CPQ uses its own Quote and Quote Line objects and not the standard Salesforce Quote and Quote line object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*mdrCzr5wC0O8AeWvSGaCQA.jpeg" /></figure><p>Each opportunity can be associated with multiple quotes, but only one of these quotes can be set to primary.</p><p>The primary quote is the quote that will most likely be accepted by the customer and that will get converted to an order, it is also automatically synchronized with the opportunity which means any change to the quote line items in the quote syncs with the opportunity products on the opportunity, and vice versa.</p><h4>Quote Templates</h4><p>Ones the quote is finalized, the sales rep needs to send it to the customer to be signed. Salesforce CPQ supports generating doc and PDF versions of your quote using quote templates.</p><p>Quote templates contain customizable sections which allows you to choose which quote elements you want your customer to see. This can be integrated with a third-party e-signature tool like Docusign.</p><h3>More about Salesforce CPQ</h3><p>This article focuses only on the core functionalities of Salesforce CPQ. If you want to have a broader idea about this solution, here are some important functionalities that weren’t covered in this article :</p><ul><li>Order and contract generation with Salesforce CPQ.</li><li>Contract amendments with Salesforce CPQ.</li><li>Contract renewal with Salesforce CPQ.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76b648145871" width="1" height="1" alt=""><hr><p><a href="https://medium.com/altius-services/introduction-to-salesforce-cpq-76b648145871">Introduction to Salesforce CPQ</a> was originally published in <a href="https://medium.com/altius-services">Altius services</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>