<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rohan Mehta</title>
    <description>The latest articles on DEV Community by Rohan Mehta (@rohanmehta).</description>
    <link>https://dev.to/rohanmehta</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4145673%2Febf1b610-27af-428b-b392-ed8ac7cbbc0b.png</url>
      <title>DEV Community: Rohan Mehta</title>
      <link>https://dev.to/rohanmehta</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rohanmehta"/>
    <language>en</language>
    <item>
      <title>Salesforce Scratch Orgs: Setting Up a Disposable Dev Environment That Actually Works</title>
      <dc:creator>Rohan Mehta</dc:creator>
      <pubDate>Sat, 28 Nov 2026 11:42:34 +0000</pubDate>
      <link>https://dev.to/rohanmehta/salesforce-scratch-orgs-setting-up-a-disposable-dev-environment-that-actually-works-1jf2</link>
      <guid>https://dev.to/rohanmehta/salesforce-scratch-orgs-setting-up-a-disposable-dev-environment-that-actually-works-1jf2</guid>
      <description>&lt;h1&gt;
  
  
  Salesforce Scratch Orgs: Setting Up a Disposable Dev Environment That Actually Works
&lt;/h1&gt;

&lt;p&gt;Sandboxes are great for testing in a copy of production. But when you're building something new — a trigger, a Lightning Web Component, a flow — a full sandbox is slow to refresh, shared with other people, and full of data you don't need. That's what scratch orgs are for: a fresh, empty Salesforce org you can spin up in minutes, break freely, and throw away when you're done.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a scratch org actually is
&lt;/h2&gt;

&lt;p&gt;A scratch org is a source-driven, temporary Salesforce org. Instead of copying production, you define it in a JSON file: which edition, which features, how long it lives. You push your metadata in from your local project, and the org exists only as long as you need it — 1 to 30 days, then it expires on its own.&lt;/p&gt;

&lt;p&gt;The key mindset shift: the org is disposable. Your source of truth is your local project, not the org. If something goes wrong, you delete the scratch org and make a new one. That freedom changes how you develop — you experiment more because the cost of a mistake is near zero.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setting one up
&lt;/h2&gt;

&lt;p&gt;First, enable Dev Hub in your production or Developer Edition org. That's a one-time step in Setup, and it gives you the ability to create scratch orgs.&lt;/p&gt;

&lt;p&gt;Next, your scratch org definition file. A minimal one looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"orgName"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Way2Force Dev"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"edition"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Developer"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"features"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"EnableSetPasswordInScratchOrg"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"settings"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"lightningExperienceSettings"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"enableS1DesktopEnabled"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then create it from the CLI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sf org create scratch --definition-file config/project-scratch-def.json --alias my-feature --duration-days 7 --set-default
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A few minutes later you have a working org. Open it with &lt;code&gt;sf org open&lt;/code&gt;, push your code with &lt;code&gt;sf project deploy start&lt;/code&gt;, and you're building.&lt;/p&gt;

&lt;h2&gt;
  
  
  A workflow that works
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;One scratch org per feature.&lt;/strong&gt; Don't reuse a single scratch org for everything — when you finish a feature, delete it and start fresh for the next one. It keeps state from leaking between tasks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Push early, push often.&lt;/strong&gt; Deploy after every meaningful change. Because the org is empty, a deploy takes seconds, and you catch errors while the change is still fresh in your head.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use a data script.&lt;/strong&gt; Scratch orgs start empty, which is a feature — but you need test data. Keep a small script or a set of data import files in your project so every new org gets the same accounts, contacts, and custom records in one command.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Set a short duration.&lt;/strong&gt; Seven days is a good default. A scratch org that lives too long starts accumulating the same cruft you're trying to avoid. If you need more time, you can always create another one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Gotchas worth knowing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Scratch orgs expire.&lt;/strong&gt; Anything not pushed back to your project is gone when the org dies. Commit your changes before the expiry date.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No production data.&lt;/strong&gt; If your feature depends on realistic data volumes, a partial-copy sandbox is the better tool.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Feature parity isn't total.&lt;/strong&gt; Some features need specific settings in your definition file, and a few things simply aren't available in scratch orgs. Check the docs before assuming a feature works.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Limits exist.&lt;/strong&gt; You get a fixed number of active scratch orgs per day and per Dev Hub. Delete finished ones promptly — don't let them sit.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Scratch orgs vs sandboxes: when to use which
&lt;/h2&gt;

&lt;p&gt;Use a scratch org when you're building something new in isolation — a trigger, a component, a flow — and you want a clean room. Use a sandbox when you need production-like data, when you're testing a deployment against real configuration, or when several people need to work in the same environment.&lt;/p&gt;

&lt;p&gt;Most teams end up using both: scratch orgs for daily development, sandboxes for integration testing and UAT. That's the right split.&lt;/p&gt;

&lt;h2&gt;
  
  
  The testing habit that makes it pay off
&lt;/h2&gt;

&lt;p&gt;A scratch org is only useful if you actually test in it. Before you push a change anywhere else, run your test classes in the scratch org. It takes minutes and catches the kind of bug that costs hours in a shared sandbox.&lt;/p&gt;

&lt;p&gt;If you're not sure what good coverage looks like, our guide to &lt;a href="https://way2force.com/salesforce-test-classes/" rel="noopener noreferrer"&gt;Salesforce test classes and code coverage&lt;/a&gt; walks through the rules, the gotchas, and how to write tests that actually help. And if your development setup still involves a lot of manual clicking, our &lt;a href="https://way2force.com/how-to-set-up-claude-code-for-salesforce-terminal-claude-desktop-app-and-vs-code/" rel="noopener noreferrer"&gt;Claude Code setup guide for Salesforce&lt;/a&gt; shows how an AI coding assistant fits into this workflow.&lt;/p&gt;

&lt;p&gt;Start with one scratch org for your next feature. Once you've worked in an environment you can break without consequences, going back to a shared sandbox for development feels like writing code directly in production.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://way2force.com" rel="noopener noreferrer"&gt;Way2Force&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>salesforce</category>
      <category>apex</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Salesforce Forecasting: Building a Pipeline Your Leadership Actually Trusts</title>
      <dc:creator>Rohan Mehta</dc:creator>
      <pubDate>Fri, 27 Nov 2026 11:42:35 +0000</pubDate>
      <link>https://dev.to/rohanmehta/salesforce-forecasting-building-a-pipeline-your-leadership-actually-trusts-4e6c</link>
      <guid>https://dev.to/rohanmehta/salesforce-forecasting-building-a-pipeline-your-leadership-actually-trusts-4e6c</guid>
      <description>&lt;h1&gt;
  
  
  Salesforce Forecasting: Building a Pipeline Your Leadership Actually Trusts
&lt;/h1&gt;

&lt;p&gt;Forecasts fail in Salesforce for the same reason every time: the numbers in the system don't match the numbers in the reps' heads. A forecast is only as honest as the data feeding it, and most orgs treat forecasting as a reporting exercise when it's really a data-discipline exercise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start With the Stage, Not the Tool
&lt;/h2&gt;

&lt;p&gt;Before you touch Collaborative Forecasts, look at your opportunity stages. If "Proposal" means "sent a quote" to one rep and "had a good call" to another, no forecast category will save you. Agree on what each stage means in plain language — what has actually happened, not what the rep hopes will happen — and write it on the stage itself.&lt;/p&gt;

&lt;p&gt;The rule that keeps forecasts honest: a stage moves forward only when a verifiable event has occurred. Proposal sent, not proposal promised. Verbal yes with a date, not a good feeling. When stages describe events instead of moods, the forecast starts telling the truth.&lt;/p&gt;

&lt;h2&gt;
  
  
  Forecast Categories Are the Contract
&lt;/h2&gt;

&lt;p&gt;Forecast categories — Pipeline, Best Case, Commit, Closed — are where reps declare their judgement. The most common failure is reps putting everything in Commit because it looks confident. Commit should mean one thing: "I will close this in this period, and I can explain why."&lt;/p&gt;

&lt;p&gt;Make the categories part of the weekly pipeline review. Ask the rep to defend each Commit deal in one sentence. If the sentence is "they really like us," the deal belongs in Best Case. This is a management habit, not a configuration — but Salesforce gives you the structure to enforce it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Clean Data Is the Prerequisite
&lt;/h2&gt;

&lt;p&gt;A forecast built on stale close dates is a work of fiction. Close dates that passed two weeks ago, opportunities with no next step, amounts that haven't changed since creation — all of it quietly poisons the forecast. The fix is boring and it works: a weekly data-hygiene routine where reps update close dates, next steps, and amounts before the pipeline meeting. &lt;a href="https://way2force.com/ai-strategy-needs-data-cleaning/" rel="noopener noreferrer"&gt;Cleaning your data first&lt;/a&gt; is the unglamorous step that makes every number downstream trustworthy, and making key fields required — see &lt;a href="https://way2force.com/how-to-make-fields-required-in-salesforce/" rel="noopener noreferrer"&gt;how to make fields required in Salesforce&lt;/a&gt; — stops the gaps from forming in the first place.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use Quotas to Make It Real
&lt;/h2&gt;

&lt;p&gt;Forecasts without quotas are just lists. Load the quota, even a rough one, so the forecast answers the only question leadership cares about: are we going to make the number, and by how much? The gap between the forecast and the quota is what drives decisions — hiring, discounting, marketing spend. Without it, the forecast meeting is a storytelling session.&lt;/p&gt;

&lt;h2&gt;
  
  
  Review the Forecast, Not the Deals
&lt;/h2&gt;

&lt;p&gt;The last habit: run the forecast review at the forecast level. Start with the totals — Commit vs quota, Best Case vs quota — and only drill into individual deals when the totals don't add up. Reviewing deal by deal every week teaches reps that the forecast is a list of stories; reviewing the totals teaches them it's a number they own.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Bottom Line
&lt;/h2&gt;

&lt;p&gt;Trustworthy forecasting is three things: stages that describe real events, categories reps defend honestly, and data that gets cleaned every week. Get those right and the tool does the rest — the forecast becomes the number leadership plans around instead of the number they quietly ignore.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://way2force.com" rel="noopener noreferrer"&gt;Way2Force&lt;/a&gt;. Rohan Mehta is a Salesforce writer at Way2Force — practical guides on Salesforce Flow, automation, and CRM.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>salesforce</category>
      <category>salesforceadmin</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Salesforce In-App Guidance: Onboarding Users Inside Salesforce Without a Training Session</title>
      <dc:creator>Rohan Mehta</dc:creator>
      <pubDate>Thu, 26 Nov 2026 11:42:34 +0000</pubDate>
      <link>https://dev.to/rohanmehta/salesforce-in-app-guidance-onboarding-users-inside-salesforce-without-a-training-session-4p6h</link>
      <guid>https://dev.to/rohanmehta/salesforce-in-app-guidance-onboarding-users-inside-salesforce-without-a-training-session-4p6h</guid>
      <description>&lt;h1&gt;
  
  
  Salesforce In-App Guidance: Onboarding Users Inside Salesforce Without a Training Session
&lt;/h1&gt;

&lt;p&gt;Most Salesforce rollouts fail at adoption, not at configuration. The org gets built, the data gets migrated, and users get a login, a 40-slide deck, and a cheerful "let me know if you have questions" — then quietly go back to their spreadsheets. In-App Guidance fixes the actual problem: it puts the training inside the app, at the exact moment the user needs it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What In-App Guidance Actually Is
&lt;/h2&gt;

&lt;p&gt;In-App Guidance is a set of prompts and walkthroughs that appear on the page where the work happens. A new rep opening an opportunity for the first time sees a short bubble explaining what the stage field means. A support agent sees a walkthrough that clicks through the case fields in order. You build all of it in Setup, with no code, and you control who sees it, on which pages, and for how long.&lt;/p&gt;

&lt;p&gt;The difference from a training document is timing. A document teaches before the work; a prompt teaches during it. People remember what they use immediately and forget what they read last week.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building Guidance People Actually Follow
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Start with the one task users get wrong.&lt;/strong&gt; Don't try to guide everything. Pick the single highest-friction task in your org — logging calls, updating the opportunity stage, filling in the required fields on a case — and build guidance for that first. One working prompt beats ten ignored ones. If your team also leans on automation to nudge people, &lt;a href="https://way2force.com/how-to-send-custom-notifications-in-salesforce-using-flow/" rel="noopener noreferrer"&gt;Flow-based custom notifications&lt;/a&gt; use the same idea: the right message, at the right moment, inside the work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Use walkthroughs, not walls of text.&lt;/strong&gt; A walkthrough is a sequence of short bubbles, each pointing at one field or button. Keep each walkthrough under five steps and each bubble under two sentences. If a step needs a paragraph, the process is the problem, not the user. Test the walkthrough as the actual audience — what reads clearly to an admin can baffle a rep seeing the page for the first time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Target by profile and page.&lt;/strong&gt; Guidance shown to everyone is guidance ignored by everyone. Show the opportunity walkthrough to sales profiles on the opportunity record page, and the case walkthrough to support profiles on the case page. In-App Guidance lets you target by profile, permission set, and page, so use all three. A prompt that appears for the wrong person trains them to dismiss prompts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Measure it, then retire it.&lt;/strong&gt; Every prompt reports views and completions. If nobody finishes a walkthrough, it is too long or badly timed. If everyone finishes it for three weeks straight, the habit has formed — retire the prompt. Guidance is scaffolding, not furniture. Leaving stale prompts up teaches users that prompts are noise, which is exactly the habit you are trying to break.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common Gotchas Worth Knowing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Prompts don't fix broken processes.&lt;/strong&gt; If the page asks for twelve fields and nobody knows why, a bubble explaining field seven won't save you. Fix the page layout first, then guide what's left.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't prompt on every page.&lt;/strong&gt; The fastest way to kill In-App Guidance is to greet users with a popup wherever they click. One prompt per workflow, and only where it earns its place.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check the edition and permissions first.&lt;/strong&gt; In-App Guidance availability depends on your edition, and building it needs the right setup permissions. Confirm both before you promise a launch date to the team. And when the guidance needs to reach people outside Salesforce — say, a channel where the team already lives — &lt;a href="https://way2force.com/set-up-slack-with-salesforce/" rel="noopener noreferrer"&gt;connecting Slack to Salesforce&lt;/a&gt; can carry the same nudge where someone will actually see it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Bottom Line
&lt;/h2&gt;

&lt;p&gt;Adoption is not a training problem, it is a timing problem. In-App Guidance works because it teaches inside the work: one task, a short walkthrough, targeted at the right people, retired when the habit sticks. Start with the task users get wrong most, keep it under five steps, and let the completion numbers tell you when to take it down.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://way2force.com" rel="noopener noreferrer"&gt;Way2Force&lt;/a&gt;. Rohan Mehta is a Salesforce writer at Way2Force — practical guides on Salesforce Flow, automation, and CRM.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>salesforce</category>
      <category>salesforceadmin</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Salesforce LWC Basics: Your First Lightning Web Component, Explained for Admins-Turned-Devs</title>
      <dc:creator>Rohan Mehta</dc:creator>
      <pubDate>Wed, 25 Nov 2026 11:42:21 +0000</pubDate>
      <link>https://dev.to/rohanmehta/salesforce-lwc-basics-your-first-lightning-web-component-explained-for-admins-turned-devs-4ieo</link>
      <guid>https://dev.to/rohanmehta/salesforce-lwc-basics-your-first-lightning-web-component-explained-for-admins-turned-devs-4ieo</guid>
      <description>&lt;h1&gt;
  
  
  Salesforce LWC Basics: Your First Lightning Web Component, Explained for Admins-Turned-Devs
&lt;/h1&gt;

&lt;p&gt;If you can build a Flow, you are closer to writing a Lightning Web Component than you think. LWC is Salesforce's modern way to build custom user interfaces — the buttons, tables, and widgets that the standard page layout cannot do. You do not need to be a full-time developer to understand it, and you do not need a computer science degree to build your first one. You need JavaScript basics, a clear use case, and the willingness to read an error message twice.&lt;/p&gt;

&lt;h2&gt;
  
  
  What an LWC Actually Is
&lt;/h2&gt;

&lt;p&gt;A Lightning Web Component is a small bundle of files that work together: an HTML template for what the user sees, a JavaScript file for what it does, and a metadata file that tells Salesforce where the component is allowed to appear. That is the whole model — three files, one purpose. When you drop the component onto a record page in App Builder, Salesforce renders it in place, alongside the standard fields and related lists.&lt;/p&gt;

&lt;p&gt;The reason LWC replaced the older Aura framework is speed. LWC is built on standard web technology, so it loads faster and behaves more like the rest of the modern web. If your org still has Aura components, they keep working — but anything new should be LWC.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your First Component, in Plain Terms
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Pick a problem a Flow cannot solve.&lt;/strong&gt; The best first component is something small and visible: a button that shows a warning when a case is older than five days, a summary card that counts open tasks on an account, a table that lists related records with a filter the related list cannot do. If a Flow or a formula field can do it, use that instead — custom code is a maintenance commitment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Learn the three files, not the whole framework.&lt;/strong&gt; Start with the HTML template (what renders), the JavaScript file (the logic, usually under 100 lines for a first component), and the metadata XML (where it can be placed). You can ignore the rest of the framework until you need it. Most first components are a template, a handful of properties, and one method that fetches data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Use the standard data tools first.&lt;/strong&gt; LWC ships with ready-made ways to read and write Salesforce data — the wire service and Lightning Data Service — so your first component does not need a single line of Apex. Pull the record's fields, display them, and save changes back, all without a server round trip you have to manage yourself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Test like you test everything else.&lt;/strong&gt; A component that works on one record type can break on another. Test with different profiles, different record types, and the mobile app, because your users will find the combination you skipped. The same discipline applies to the code behind it — &lt;a href="https://way2force.com/salesforce-test-classes/" rel="noopener noreferrer"&gt;writing solid Apex test classes&lt;/a&gt; is what keeps a small component from becoming a deployment blocker later.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Keep it boring on purpose.&lt;/strong&gt; The components that survive longest are the simple ones: one job, clear naming, no clever tricks. A component that tries to do five things will be rewritten within a year. A component that does one thing well will quietly run for years.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common Gotchas Worth Knowing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Security is not optional.&lt;/strong&gt; LWC runs with the current user's permissions, which is good — but it also means a component that works for you as an admin can fail for a standard user. Test as the actual audience, not as yourself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The cache will fool you.&lt;/strong&gt; Salesforce caches component code aggressively. If your change does not appear, hard-refresh before you assume the code is wrong.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Apex is still there when you need it.&lt;/strong&gt; When the standard data tools cannot do the job — a complex calculation, a callout to another system — a small Apex class behind the component fills the gap. If you are setting up a modern dev workflow around that code, &lt;a href="https://way2force.com/how-to-set-up-claude-code-for-salesforce-terminal-claude-desktop-app-and-vs-code/" rel="noopener noreferrer"&gt;the Claude Code setup guide&lt;/a&gt; covers a terminal and VS Code setup that works well for LWC work too.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Version control matters from day one.&lt;/strong&gt; A component that lives only in one org is a component you will lose. Even a single developer should keep code in source control before the first deployment.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Bottom Line
&lt;/h2&gt;

&lt;p&gt;LWC is not a leap into full-time development — it is the next tool after Flows and formulas, for the interface problems those tools cannot reach. Pick one small, visible problem, build the three files, test as a real user, and keep it boring. That first component teaches you more about Salesforce development than any tutorial will.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://way2force.com" rel="noopener noreferrer"&gt;Way2Force&lt;/a&gt;. Rohan Mehta is a Salesforce writer at Way2Force — practical guides on Salesforce Flow, automation, and CRM.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>salesforce</category>
      <category>apex</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Salesforce Validation Rules: Stopping Bad Data at the Door</title>
      <dc:creator>Rohan Mehta</dc:creator>
      <pubDate>Tue, 24 Nov 2026 11:42:23 +0000</pubDate>
      <link>https://dev.to/rohanmehta/salesforce-validation-rules-stopping-bad-data-at-the-door-4694</link>
      <guid>https://dev.to/rohanmehta/salesforce-validation-rules-stopping-bad-data-at-the-door-4694</guid>
      <description>&lt;h1&gt;
  
  
  Salesforce Validation Rules: Stopping Bad Data at the Door
&lt;/h1&gt;

&lt;p&gt;Every Salesforce admin has seen it: an opportunity saved with a close date in the past, a lead with no phone number, a case assigned to a queue that no longer exists. Bad data does not announce itself — it quietly spreads until a report is wrong, an automation misfires, or a rep loses trust in the system. Validation rules are the simplest way to stop bad data at the door, before it ever becomes a record.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a Validation Rule Actually Does
&lt;/h2&gt;

&lt;p&gt;A validation rule is a formula that runs when a user saves a record. If the formula evaluates to true, Salesforce blocks the save and shows your error message. That is the whole mechanism — one formula, one message, enforced every single time, no matter whether the record comes from the UI, an import, or an API call.&lt;/p&gt;

&lt;p&gt;The most common mistake is thinking of validation rules as data-quality polish. They are not polish; they are a contract. A close date cannot be in the past. A discount above 20% needs a reason. An email field must actually look like an email. Each rule encodes one business decision that used to live in someone's head.&lt;/p&gt;

&lt;h2&gt;
  
  
  Writing Rules People Can Live With
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Start with the fields users already get wrong.&lt;/strong&gt; Look at your messiest reports and work backwards. If half your opportunities are missing a next step, that is your first rule — not a clever formula nobody asked for. The goal is fewer corrections later, not more red text now.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Keep the error message human.&lt;/strong&gt; "Error: FIELD_CUSTOM_VALIDATION_EXCEPTION" tells a user nothing. "Close date can't be in the past — pick a future date" tells them exactly what to fix. Write the message as if you are standing next to the person who triggered it, because in a sense you are.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Make the rule as narrow as possible.&lt;/strong&gt; A rule that fires on every record type or every stage will annoy people into workarounds — and workarounds are worse than the bad data you started with. Scope rules by record type, stage, or profile where it makes sense. If a rule should not apply to system admins doing a data fix, say so in the formula.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Pair rules with required fields, not instead of them.&lt;/strong&gt; A required field guarantees a value exists; a validation rule guarantees the value makes sense. They solve different problems. If you are deciding which one to use for a field like phone number, &lt;a href="https://way2force.com/how-to-make-fields-required-in-salesforce/" rel="noopener noreferrer"&gt;this guide to making fields required&lt;/a&gt; covers the required-field side of the pair.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Test with real data, not perfect data.&lt;/strong&gt; Before activating a rule, run it against your existing records in a sandbox. A rule that would have blocked 40% of last month's saves is not a quality win — it is a sign the rule is too strict or your users need a different process. The same "clean the data first" logic applies to &lt;a href="https://way2force.com/ai-strategy-needs-data-cleaning/" rel="noopener noreferrer"&gt;any AI or automation project&lt;/a&gt; — rules cannot fix data that is already wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common Gotchas Worth Knowing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Validation rules fire on imports too.&lt;/strong&gt; A bulk load that trips a rule will fail row by row. That is usually what you want — but warn whoever runs the import first, or their job will look broken.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rules do not run on every save.&lt;/strong&gt; They fire on insert and update, but some system processes and certain API operations can bypass them. Do not treat a validation rule as your only line of defence for critical data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Order matters with Flows.&lt;/strong&gt; A record-triggered Flow that updates a field can itself trip a validation rule and fail. If an automation suddenly starts erroring, check the validation rules on the object before you debug the Flow.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Too many rules is a smell.&lt;/strong&gt; If an object has twenty validation rules, the real problem is usually an unclear process, not twenty separate data problems. Consolidate where you can, and retire rules that no longer match how the team works.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Bottom Line
&lt;/h2&gt;

&lt;p&gt;Validation rules are the cheapest data-quality tool Salesforce gives you: no code, no package, no maintenance burden beyond the formula itself. Write a few good ones, keep the messages human, test against real data before you activate them, and your reports — and your automations — will quietly get more trustworthy.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://way2force.com" rel="noopener noreferrer"&gt;Way2Force&lt;/a&gt;. Rohan Mehta is a Salesforce writer at Way2Force — practical guides on Salesforce Flow, automation, and CRM.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>salesforceadmin</category>
      <category>salesforce</category>
    </item>
    <item>
      <title>Salesforce Bulk API 2.0: Loading Large Data Sets Without the Headaches</title>
      <dc:creator>Rohan Mehta</dc:creator>
      <pubDate>Mon, 23 Nov 2026 11:42:35 +0000</pubDate>
      <link>https://dev.to/rohanmehta/salesforce-bulk-api-20-loading-large-data-sets-without-the-headaches-39ap</link>
      <guid>https://dev.to/rohanmehta/salesforce-bulk-api-20-loading-large-data-sets-without-the-headaches-39ap</guid>
      <description>&lt;h1&gt;
  
  
  Salesforce Bulk API 2.0: Loading Large Data Sets Without the Headaches
&lt;/h1&gt;

&lt;p&gt;If you have ever tried to load 50,000 records into Salesforce with the default Data Loader settings, you know the feeling: the progress bar crawls, a batch fails at 92%, and you are left guessing which records made it in and which did not. The Bulk API 2.0 exists for exactly this job — and once you understand how it thinks, large data loads stop being stressful.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Bulk API 2.0 Actually Does
&lt;/h2&gt;

&lt;p&gt;Bulk API 2.0 is Salesforce's asynchronous data-loading API. Instead of sending records one request at a time, you create a job, upload a CSV file, and Salesforce processes the records in the background while you get on with your day.&lt;/p&gt;

&lt;p&gt;The flow is simple: create a job (insert, update, upsert, or delete), upload your CSV, close the job, and then check the job's status. Salesforce returns success and failure files you can download, so every record's outcome is accounted for. There is no mystery about what landed and what did not.&lt;/p&gt;

&lt;h2&gt;
  
  
  When to Use It — and When Not To
&lt;/h2&gt;

&lt;p&gt;Reach for Bulk API 2.0 when you are moving thousands of records or more: data migrations, nightly syncs from another system, or bulk cleanups. For a few hundred records, the standard Data Loader or even the Import Wizard is faster to set up and easier to watch.&lt;/p&gt;

&lt;p&gt;The one thing it will not do is fix bad data. A bulk load multiplies whatever quality your source file has — good or bad. Clean the data first: standardize picklist values, deduplicate, and validate required fields before you upload. We wrote about why that cleaning step matters before any AI or automation project in &lt;a href="https://way2force.com/ai-strategy-needs-data-cleaning/" rel="noopener noreferrer"&gt;this guide to data cleaning for AI strategy&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five Practices That Keep Loads Boring
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Upsert with an external ID.&lt;/strong&gt; If your records have a stable identifier from the source system, store it in an external ID field and upsert against it. You get insert-or-update in one pass, and re-running a job never creates duplicates.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Keep files under the limits.&lt;/strong&gt; Bulk API 2.0 accepts CSV files up to 150 MB, and each job can process up to 150 million records. But a single giant file is harder to troubleshoot — split very large loads into logical chunks, one object or one business unit at a time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Watch the job, don't just fire it.&lt;/strong&gt; A job moves through states: Open, UploadComplete, InProgress, JobComplete. Check the state before you assume anything, and download the failed-records file when the job finishes. Failed rows include an error message per row — usually a validation rule, a missing required field, or a bad lookup value.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Respect the daily limits.&lt;/strong&gt; Each org gets 10,000 Bulk API batches per rolling 24 hours (and 15,000 Bulk API 2.0 jobs per day in most editions). Sounds generous until a scheduled integration retries aggressively. If you are building an integration, &lt;a href="https://way2force.com/salesforce-test-classes/" rel="noopener noreferrer"&gt;test your code the way you would test any Apex&lt;/a&gt; — with real governor-limit awareness.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Load in dependency order.&lt;/strong&gt; Parent records first, then children. Accounts before contacts, opportunities before opportunity products. It sounds obvious, and it is the step most often skipped at 11 PM before a go-live.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common Gotchas Worth Knowing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Validation rules still fire.&lt;/strong&gt; Bulk API does not bypass them. If a rule blocks a record, that row fails while the rest succeed — which is exactly why the failed-records file exists.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Triggers and Flows run on every record.&lt;/strong&gt; A heavy Flow on the object you are loading will slow the job and can push you into governor limits. Consider deactivating non-essential automation during a migration window, then turning it back on.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hard deletes are permanent.&lt;/strong&gt; The hardDelete operation skips the Recycle Bin. Use it only when you are certain, and always run a delete against a small test batch first.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Bottom Line
&lt;/h2&gt;

&lt;p&gt;Bulk API 2.0 turns a scary migration into a repeatable process: prepare the file, create the job, monitor the state, and reconcile the failures. The tool is forgiving if you respect it — clean data in, checked results out, and no heroics at midnight.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://way2force.com" rel="noopener noreferrer"&gt;Way2Force&lt;/a&gt;. Rohan Mehta is a Salesforce writer at Way2Force — practical guides on Salesforce Flow, automation, and CRM.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>salesforce</category>
      <category>tutorial</category>
      <category>data</category>
    </item>
    <item>
      <title>Salesforce Named Credentials: Secure API Callouts Without Hardcoded Secrets</title>
      <dc:creator>Rohan Mehta</dc:creator>
      <pubDate>Sun, 22 Nov 2026 11:42:11 +0000</pubDate>
      <link>https://dev.to/rohanmehta/salesforce-named-credentials-secure-api-callouts-without-hardcoded-secrets-a2b</link>
      <guid>https://dev.to/rohanmehta/salesforce-named-credentials-secure-api-callouts-without-hardcoded-secrets-a2b</guid>
      <description>&lt;h1&gt;
  
  
  Salesforce Named Credentials: Secure API Callouts Without Hardcoded Secrets
&lt;/h1&gt;

&lt;p&gt;Every Salesforce org eventually needs to talk to something outside Salesforce — a payment gateway, an internal API, a shipping service. The first version of that integration usually looks the same: an endpoint URL pasted into Apex, a username and password tucked into a custom setting, and a quiet hope that nobody ever looks too closely.&lt;/p&gt;

&lt;p&gt;Named Credentials exist so you never have to do that again.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a Named Credential Actually Does
&lt;/h2&gt;

&lt;p&gt;A Named Credential is a single named definition that bundles three things: the base URL of the external system, the authentication scheme, and the credentials themselves. Your Apex code refers to the credential by name — &lt;code&gt;callout:My_External_API&lt;/code&gt; — and Salesforce handles the rest: building the full URL, attaching the auth header, and refreshing tokens when the scheme supports it.&lt;/p&gt;

&lt;p&gt;The important part is what your code never sees. Secrets live in the credential record, not in your source. That means no passwords in version control, no credentials visible in debug logs, and no frantic search-and-replace when a password rotates.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Setup, Step by Step
&lt;/h2&gt;

&lt;p&gt;There are two records to create, and the order matters.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Create an External Credential.&lt;/strong&gt; This is where the authentication lives. Pick the protocol your system expects — basic auth, OAuth 2.0, JWT, or a custom header — and fill in the identity details. For OAuth flows, the external credential also stores the token endpoint and handles the token exchange.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Create the Named Credential.&lt;/strong&gt; Point it at the base URL (for example &lt;code&gt;https://api.example.com&lt;/code&gt;) and link it to the external credential you just made. Give it a clear, descriptive name, because that name is what developers will type in Apex for years.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Grant access with a permission set.&lt;/strong&gt; Users can only use a Named Credential if a permission set grants them access to its external credential. This is the step most people skip and then spend an hour debugging — a callout that works for the admin fails for everyone else, and the error message will not tell you why.&lt;/p&gt;

&lt;h2&gt;
  
  
  Calling It From Apex
&lt;/h2&gt;

&lt;p&gt;Once the credential exists, the callout is almost boring:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight apex"&gt;&lt;code&gt;&lt;span class="nc"&gt;HttpRequest&lt;/span&gt; &lt;span class="n"&gt;req&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;HttpRequest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setEndpoint&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'callout:My_External_API/orders/12345'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setMethod&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'GET'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nc"&gt;HttpResponse&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Http&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;send&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notice what is missing: no URL string, no Authorization header, no credential handling at all. The &lt;code&gt;callout:&lt;/code&gt; prefix tells Salesforce to resolve the named credential, attach whatever auth the external credential defines, and send the request.&lt;/p&gt;

&lt;p&gt;When you write &lt;a href="https://way2force.com/salesforce-test-classes/" rel="noopener noreferrer"&gt;Apex test classes&lt;/a&gt;, remember that callouts need a mock — Named Credentials do not change that rule, but they do make the mock simpler, because your test only has to assert against the named endpoint, not a hardcoded URL.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Gotchas Worth Knowing
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Callout limits still apply.&lt;/strong&gt; Named Credentials do not raise the 100-callout-per-transaction limit or the 120-second timeout. If you are making many calls, think about batching or queueing the work — the same discipline you would apply to any governor-limit-sensitive code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The URL is a base, not the whole path.&lt;/strong&gt; The named credential holds the domain and base path; your Apex appends the resource path. Keep the base stable and build the resource path dynamically.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rotate secrets at the credential, not in code.&lt;/strong&gt; When a vendor rotates an API key, you update one record in Setup. No deployment, no code change, no weekend emergency release.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Per-user authentication is an option.&lt;/strong&gt; For systems where each Salesforce user has their own external identity, an external credential can be configured per user instead of per org. This is the right call for integrations where actions should be attributed to the person, not the org.&lt;/p&gt;

&lt;p&gt;If your org is adopting AI-assisted development, the same "keep secrets out of code" discipline matters even more — our guide to &lt;a href="https://way2force.com/how-to-set-up-claude-code-for-salesforce-terminal-claude-desktop-app-and-vs-code/" rel="noopener noreferrer"&gt;setting up Claude Code for Salesforce&lt;/a&gt; covers how to keep your development workflow clean while tools generate more of your code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Is Worth Doing Now
&lt;/h2&gt;

&lt;p&gt;Retrofitting Named Credentials into an existing integration is a small job: create the two records, swap the endpoint strings for &lt;code&gt;callout:&lt;/code&gt; references, and delete the hardcoded secrets. The payoff is permanent — every future integration starts from a secure pattern, every secret rotation is a one-record change, and your codebase stops being a place where credentials go to leak.&lt;/p&gt;

&lt;p&gt;Start with the integration you trust the least. The one with the password in a custom setting that everyone knows about and nobody wants to touch. That is exactly the one Named Credentials were built for.&lt;/p&gt;




&lt;p&gt;Originally published at &lt;a href="https://way2force.com" rel="noopener noreferrer"&gt;Way2Force&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>salesforce</category>
      <category>apex</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Salesforce Custom Objects: Designing a Data Model That Won't Haunt You Later</title>
      <dc:creator>Rohan Mehta</dc:creator>
      <pubDate>Sat, 21 Nov 2026 11:42:10 +0000</pubDate>
      <link>https://dev.to/rohanmehta/salesforce-custom-objects-designing-a-data-model-that-wont-haunt-you-later-4ki6</link>
      <guid>https://dev.to/rohanmehta/salesforce-custom-objects-designing-a-data-model-that-wont-haunt-you-later-4ki6</guid>
      <description>&lt;h1&gt;
  
  
  Salesforce Custom Objects: Designing a Data Model That Won't Haunt You Later
&lt;/h1&gt;

&lt;p&gt;Every Salesforce org starts with the standard objects — Accounts, Contacts, Opportunities — and every org eventually outgrows them. The moment you need to track something Salesforce didn't build for you, custom objects are the answer. But a custom object created in a hurry becomes technical debt that follows you for years. Here's how to design one properly the first time.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Start with the question, not the object
&lt;/h2&gt;

&lt;p&gt;Before you click "New Custom Object," write down the business question it answers. "We need to track equipment loans to customers" is a question. "We need an object" is not. If you can't state the question in one sentence, you don't understand the requirement yet — and the object you build will reflect that confusion. Sketch the fields, the relationships, and who needs to see the records before you build anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Pick the right relationship — it decides everything
&lt;/h2&gt;

&lt;p&gt;The relationship you choose between your custom object and its parent is the hardest thing to change later. A master-detail relationship gives you roll-up summaries and cascade deletes, but it locks the child to one parent forever. A lookup relationship is flexible — you can reparent records, leave the field blank, and relate to multiple objects — but you lose roll-ups. For anything that only exists in the context of its parent (line items on a quote, sessions in a training course), master-detail is usually right. For anything that has a life of its own, use a lookup.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Name fields like someone else has to use them
&lt;/h2&gt;

&lt;p&gt;Field names are user interface. "Cust_Loan_Dt__c" means nothing to the sales rep staring at a page layout; "Loan Date" does. Use clear labels, helpful descriptions, and help text on any field where the expected value isn't obvious. A field nobody understands is a field that gets filled with junk — and junk data is exactly what makes AI and reporting unreliable later. Our guide on &lt;a href="https://way2force.com/ai-strategy-needs-data-cleaning/" rel="noopener noreferrer"&gt;why every AI strategy needs data cleaning first&lt;/a&gt; makes the same point from the other side: clean data starts at the point of entry, not in a cleanup project six months later.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Make the important fields required — deliberately
&lt;/h2&gt;

&lt;p&gt;Every object has fields that must be filled in for the record to be useful. Make those required at the page-layout level for the profiles that create records, and think twice before making them required at the field level, which blocks API loads and data imports. The goal is a record that is complete enough to act on, not a form so strict that users invent workarounds. Our walkthrough on &lt;a href="https://way2force.com/how-to-make-fields-required-in-salesforce/" rel="noopener noreferrer"&gt;making fields required in Salesforce&lt;/a&gt; covers the six ways to do this and when each one fits.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Plan for reporting on day one
&lt;/h2&gt;

&lt;p&gt;If nobody can report on your custom object, it might as well not exist. Check that the object is available in report types, that the fields users need are reportable, and that the sharing model lets the right people see the records. A custom object with private sharing and no report type is a black hole — data goes in and insight never comes out.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Keep it lean — you can always add fields later
&lt;/h2&gt;

&lt;p&gt;The temptation is to build every field you can imagine on day one. Resist it. Launch with the fields the business needs now, watch how people actually use the object for a month, and then add what is missing. Adding a field is easy; removing one that users have filled with two years of data is a project.&lt;/p&gt;

&lt;p&gt;A well-designed custom object feels invisible: users just do their work, reports just work, and nobody thinks about the data model. That's the standard worth building to.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://way2force.com" rel="noopener noreferrer"&gt;Way2Force&lt;/a&gt; — practical guides on Salesforce Flow, automation, and CRM.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>salesforceadmin</category>
      <category>salesforce</category>
    </item>
    <item>
      <title>Salesforce Workflow Rules to Flow: A Migration Checklist That Won't Break Your Automations</title>
      <dc:creator>Rohan Mehta</dc:creator>
      <pubDate>Fri, 20 Nov 2026 11:41:45 +0000</pubDate>
      <link>https://dev.to/rohanmehta/salesforce-workflow-rules-to-flow-a-migration-checklist-that-wont-break-your-automations-2de1</link>
      <guid>https://dev.to/rohanmehta/salesforce-workflow-rules-to-flow-a-migration-checklist-that-wont-break-your-automations-2de1</guid>
      <description>&lt;h1&gt;
  
  
  Salesforce Workflow Rules to Flow: A Migration Checklist That Won't Break Your Automations
&lt;/h1&gt;

&lt;p&gt;Salesforce has made it clear: Workflow Rules and Process Builder are on the way out, and Flow is the future. If your org still runs on old workflow rules, migration is not optional — but a rushed migration is how working automations quietly break. Here is a checklist that keeps the move safe.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Inventory everything before you touch anything
&lt;/h2&gt;

&lt;p&gt;Start with a full list of every Workflow Rule and Process Builder process in the org: what object it fires on, its criteria, and every action it takes. Use the Flow Migration Tool in Setup to see what Salesforce can convert automatically — but treat its output as a starting point, not a finished job. Many rules convert cleanly; the ones with time-based actions and complex criteria need a human eye.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Map each rule to the right Flow type
&lt;/h2&gt;

&lt;p&gt;Not every Workflow Rule becomes the same kind of Flow. A rule that updates a field on the same record becomes a record-triggered, before-save Flow — the fastest option, and usually a straight replacement. A rule that creates a task or sends an email becomes a record-triggered, after-save Flow. A rule that fires on a schedule becomes a scheduled Flow. Getting the type wrong is the most common migration mistake, and it is also the easiest to avoid if you decide it before you build.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Rebuild the logic, don't just copy it
&lt;/h2&gt;

&lt;p&gt;Workflow Rules let you get away with sloppy logic — a criteria formula that nobody understands, an update that fires on every edit. Flow gives you Decision elements, fault paths, and proper debugging, so use them. When you rebuild a rule, ask whether the criteria still make sense: many old rules encode business logic that changed years ago. Migration is the one moment you get to clean house, so take it.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Test in a sandbox with real data
&lt;/h2&gt;

&lt;p&gt;Never migrate directly in production. Build the Flow in a sandbox, then test it against real scenarios: create the record, edit the record, and check that the field updates, the task is created, and the email is sent. Pay special attention to order of execution — a Flow that runs before a validation rule can behave differently from a Workflow Rule that ran after it. Our guide to &lt;a href="https://way2force.com/how-to-set-the-run-context-of-a-salesforce-flow/" rel="noopener noreferrer"&gt;how to set the run context of a Salesforce Flow&lt;/a&gt; explains the user-versus-system context question that decides whether your Flow can even see the data it needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Switch over one rule at a time
&lt;/h2&gt;

&lt;p&gt;Deactivate the old Workflow Rule only after the new Flow is live and verified. Run them in parallel for a week if you can — the Flow does the work, and the old rule stays as a safety net you can reactivate. If anything looks wrong, you roll back in seconds instead of rebuilding under pressure. And when the Flow sends alerts, make sure they reach the right people — our walkthrough on &lt;a href="https://way2force.com/how-to-send-custom-notifications-in-salesforce-using-flow/" rel="noopener noreferrer"&gt;custom notifications with Flow&lt;/a&gt; shows how to route them properly.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Document what you migrated — and what you deleted
&lt;/h2&gt;

&lt;p&gt;Every migration leaves behind rules that are obsolete, duplicated, or already covered by another automation. Delete them, and write down what you removed and why. Six months from now, when someone asks why a rule is gone, that note is the difference between a five-minute answer and a half-day investigation.&lt;/p&gt;

&lt;p&gt;Migration is not a weekend project, but it is not a scary one either. Inventory, map, rebuild, test, switch over one at a time — and your org comes out faster, cleaner, and ready for whatever Salesforce builds next.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://way2force.com" rel="noopener noreferrer"&gt;Way2Force&lt;/a&gt; — practical guides on Salesforce Flow, automation, and CRM.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>salesforce</category>
      <category>flow</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Salesforce MFA: Setting Up Multi-Factor Authentication for Your Org</title>
      <dc:creator>Rohan Mehta</dc:creator>
      <pubDate>Thu, 19 Nov 2026 11:42:17 +0000</pubDate>
      <link>https://dev.to/rohanmehta/salesforce-mfa-setting-up-multi-factor-authentication-for-your-org-f5m</link>
      <guid>https://dev.to/rohanmehta/salesforce-mfa-setting-up-multi-factor-authentication-for-your-org-f5m</guid>
      <description>&lt;h1&gt;
  
  
  Salesforce MFA: Setting Up Multi-Factor Authentication for Your Org
&lt;/h1&gt;

&lt;p&gt;Salesforce made multi-factor authentication (MFA) a contractual requirement for anyone signing in to a Salesforce product, and for good reason: a password alone is no longer enough to protect the customer data sitting in your org. If you are the admin who has to roll MFA out, here is a practical plan that gets everyone enrolled without a revolt.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Pick the verification method first
&lt;/h2&gt;

&lt;p&gt;Salesforce supports three methods: the Salesforce Authenticator app, a third-party TOTP app such as Google Authenticator, and a physical security key. The Salesforce Authenticator app is the smoothest default — it pushes a notification the user approves, and it works offline with time-based codes as a fallback. Security keys are the strongest option and make sense for system admins and anyone with broad data access. Let users choose between the app and a TOTP app, but require security keys for your admin team.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Turn it on in stages, not all at once
&lt;/h2&gt;

&lt;p&gt;Go to Setup → Identity Verification and enable MFA for the profiles that need it, starting with System Administrators and a small pilot group of friendly users. Run the pilot for a week, fix the friction points (usually: users who never got the enrollment email, or people on shared devices), then roll out profile by profile. A big-bang rollout on a Monday morning is how MFA projects earn a bad reputation.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Handle the exceptions properly
&lt;/h2&gt;

&lt;p&gt;Some users genuinely cannot use a phone app — a shared service account, a kiosk login, an integration user. For those, use a security key or a dedicated hardware token, and document the exception with an owner and a review date. What you should never do is exempt a human user's profile "temporarily" and forget about it — that exemption becomes permanent, and it becomes the attacker's easiest door in.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Don't forget your integration and API users
&lt;/h2&gt;

&lt;p&gt;MFA applies to interactive logins, but your integrations log in too. API-only users should use OAuth flows or a dedicated integration user with a strong password, IP restrictions, and login hours locked down. A good habit is to review the Login History report monthly for any login that bypassed MFA — Salesforce flags these, and every one of them deserves a look.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Train users on the recovery flow before they need it
&lt;/h2&gt;

&lt;p&gt;The number one MFA support ticket is "I got a new phone and I'm locked out." Before rollout, publish a one-page guide: how to register a second verification method, who to call when locked out, and how the admin resets MFA for a user (Setup → Users → the user's record → reset the MFA registration). Admins who can reset MFA quickly turn a crisis into a two-minute fix.&lt;/p&gt;

&lt;p&gt;Good data hygiene starts with knowing your data is clean — our guide to &lt;a href="https://way2force.com/ai-strategy-needs-data-cleaning/" rel="noopener noreferrer"&gt;why every AI strategy needs data cleaning first&lt;/a&gt; explains why bad data undermines every automation you build on top of it. And if you're tightening access more broadly, our &lt;a href="https://way2force.com/how-to-set-up-and-assign-permission-sets-with-an-expiration-date-in-salesforce/" rel="noopener noreferrer"&gt;permission sets with expiration dates&lt;/a&gt; walkthrough shows how to grant powerful access that switches itself off.&lt;/p&gt;

&lt;p&gt;MFA is not a project you finish and forget. Review enrollment monthly, chase the stragglers, and re-check your exception list every quarter. The orgs that get breached are rarely the ones without MFA — they're the ones where MFA was enabled for everyone except the one account that mattered.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://way2force.com" rel="noopener noreferrer"&gt;Way2Force&lt;/a&gt; — practical guides on Salesforce Flow, automation, and CRM.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>salesforce</category>
      <category>salesforceadmin</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Salesforce Record Types: One Object, Many Business Processes</title>
      <dc:creator>Rohan Mehta</dc:creator>
      <pubDate>Wed, 18 Nov 2026 11:42:27 +0000</pubDate>
      <link>https://dev.to/rohanmehta/salesforce-record-types-one-object-many-business-processes-7i4</link>
      <guid>https://dev.to/rohanmehta/salesforce-record-types-one-object-many-business-processes-7i4</guid>
      <description>&lt;h1&gt;
  
  
  Salesforce Record Types: One Object, Many Business Processes
&lt;/h1&gt;

&lt;p&gt;One object, three different teams, three different processes — and one very confused page layout. That's the moment most admins discover Salesforce record types. Instead of cloning objects or building workarounds, record types let a single object behave differently depending on the kind of record you're looking at.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a record type actually does
&lt;/h2&gt;

&lt;p&gt;A record type changes three things about a record: which page layout it shows, which picklist values are available, and which business process it follows. A support case and a billing case can both live in the Case object, but with different fields, different statuses, and different layouts — because they are different kinds of work.&lt;/p&gt;

&lt;p&gt;The simplest way to think about it: a record type answers the question "what kind of record is this?" before anyone has to fill in a field.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where record types earn their keep
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Different teams, one object.&lt;/strong&gt; Sales and support both use Cases, but support needs a severity field and sales needs a deal reference. Two record types, two layouts, no clutter for either team.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Different processes, one pipeline.&lt;/strong&gt; An opportunity for a new customer and an opportunity for a renewal follow different stages. Record types let each follow its own sales process — its own stage picklist — while reporting stays in one place.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cleaner data entry.&lt;/strong&gt; When a picklist only shows values that make sense for that record type, users stop picking the wrong one. Fewer "miscellaneous" values means cleaner reports later — and as our guide on &lt;a href="https://way2force.com/ai-strategy-needs-data-cleaning/" rel="noopener noreferrer"&gt;why every AI strategy needs data cleaning first&lt;/a&gt; explains, clean data at the point of entry is worth ten times more than cleaning it afterwards.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup that keeps it simple
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Start with the default.&lt;/strong&gt; Every object has a default record type. Get that one right first — it covers every record that doesn't need a special type, and it's what most users will see most of the time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Assign by profile, not by hope.&lt;/strong&gt; Record types only work if the right people can see the right ones. A support rep should see the support case type; a sales rep shouldn't have to scroll past it. Check the profile assignments when you create the type, not three months later when someone files a ticket about a missing picklist value.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Keep the count low.&lt;/strong&gt; Two or three record types per object is a sweet spot. Ten record types is a maintenance burden — every new field means checking ten layouts, and every process change means checking ten picklists. If you're past five, ask whether a field or a picklist value would do the job instead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Name them for the work, not the team.&lt;/strong&gt; "Support Case" beats "Case — Support Team" because teams reorganize and processes outlive org charts. The name should tell the next admin what the record is for.&lt;/p&gt;

&lt;h2&gt;
  
  
  Record types and automation
&lt;/h2&gt;

&lt;p&gt;Record types pair well with Flow, but they change how automation behaves. A Flow that fires on record creation needs to know which record type it's dealing with — the criteria that matter for a support case are different from the ones for a billing case. Our guide on &lt;a href="https://way2force.com/how-to-set-the-run-context-of-a-salesforce-flow/" rel="noopener noreferrer"&gt;Flow run context&lt;/a&gt; covers how Flows decide what they can see and do, which matters doubly when a single object runs several processes.&lt;/p&gt;

&lt;p&gt;And when a field should only ever be filled in for one record type, make it required on that type's layout — not on the object. Our guide on &lt;a href="https://way2force.com/how-to-make-fields-required-in-salesforce/" rel="noopener noreferrer"&gt;making fields required in Salesforce&lt;/a&gt; walks through the options, and record-type-specific layouts are one of the cleanest ways to do it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mistakes to avoid
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Record types for every small difference.&lt;/strong&gt; If the only difference is one field, use a field and a validation rule instead.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Forgetting the default assignment.&lt;/strong&gt; New users get the default record type. If the default is wrong for them, every record they create starts wrong.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No record type on reports.&lt;/strong&gt; If your reports don't filter or group by record type, you'll wonder why the numbers look odd. Add it to the report columns early.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Changing a type's meaning later.&lt;/strong&gt; Renaming or repurposing a record type after hundreds of records exist is a data migration in disguise. Get the design right before the records pile up.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The bottom line
&lt;/h2&gt;

&lt;p&gt;Record types are how one object serves several processes without turning into a mess. Keep the count small, assign them by profile, name them for the work, and let each type carry its own layout and picklist values. Your users see only what matters to them — and your reports stay honest.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://way2force.com" rel="noopener noreferrer"&gt;Way2Force&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>salesforce</category>
      <category>salesforceadmin</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Salesforce Opportunity Stages: Building a Sales Process Your Reps Actually Follow</title>
      <dc:creator>Rohan Mehta</dc:creator>
      <pubDate>Tue, 17 Nov 2026 11:42:12 +0000</pubDate>
      <link>https://dev.to/rohanmehta/salesforce-opportunity-stages-building-a-sales-process-your-reps-actually-follow-4670</link>
      <guid>https://dev.to/rohanmehta/salesforce-opportunity-stages-building-a-sales-process-your-reps-actually-follow-4670</guid>
      <description>&lt;p&gt;Most Salesforce orgs have an opportunity pipeline that looks great on a dashboard and falls apart in real life. Reps move deals forward because a meeting happened, not because anything actually changed. Managers forecast on gut feel. The fix isn't more stages — it's stages that mean something.&lt;/p&gt;

&lt;h2&gt;
  
  
  What an opportunity stage should actually represent
&lt;/h2&gt;

&lt;p&gt;An opportunity stage is a promise about where a deal really stands. Each stage should answer one question: what has the customer done, not what has the rep done? "Proposal sent" is a rep activity. "Customer confirmed the proposal solves their problem" is a buying signal. Build your stages around the second kind.&lt;/p&gt;

&lt;p&gt;A solid stage set for most B2B teams:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Qualification&lt;/strong&gt; — the problem is confirmed and there's a real budget and timeline.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Discovery&lt;/strong&gt; — you've mapped the stakeholders and the decision process.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Proposal&lt;/strong&gt; — the customer has seen a concrete solution and pricing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Negotiation&lt;/strong&gt; — terms are being worked, not just discussed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Closed Won / Closed Lost&lt;/strong&gt; — the only two stages that end the story.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The two mistakes that break every pipeline
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Too many stages.&lt;/strong&gt; Ten stages feels precise; in practice reps park deals wherever feels safest. Five or six stages with clear entry and exit criteria beat ten vague ones every time. If two stages can't be distinguished by what the customer did, merge them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No exit criteria.&lt;/strong&gt; A stage without an exit rule is a parking lot. For each stage, write down the one thing that must be true before a deal moves on — a confirmed stakeholder, a signed evaluation plan, a verbal yes from the economic buyer. Put that rule where reps can see it: in the stage's description, in the path guidance, in training. Then enforce it in pipeline reviews, not with automation that nags.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make the pipeline tell the truth
&lt;/h2&gt;

&lt;p&gt;A pipeline is only useful if it's honest. Three habits keep it that way:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Review stalled deals weekly.&lt;/strong&gt; Any opportunity sitting in one stage for longer than your average sales cycle deserves a question, not a shrug. Either the stage is wrong or the deal is.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tie stage changes to customer evidence.&lt;/strong&gt; A quick note, a logged call, an updated close date with a reason. The record should show why the deal moved, not just that it did.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Clean the data before you forecast.&lt;/strong&gt; A forecast built on stale, duplicated, or half-filled records is fiction. Our guide on &lt;a href="https://way2force.com/ai-strategy-needs-data-cleaning/" rel="noopener noreferrer"&gt;why every AI strategy needs data cleaning first&lt;/a&gt; covers the same groundwork — it matters just as much for pipeline hygiene as it does for AI.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Automate the follow-through, not the judgement
&lt;/h2&gt;

&lt;p&gt;Automation should do the remembering, not the deciding. When a deal hits Negotiation, a Flow can notify the deal desk, create the approval task, and update the close date reminder — the rep still decides whether the deal is truly ready. Our guide on &lt;a href="https://way2force.com/how-to-send-custom-notifications-in-salesforce-using-flow/" rel="noopener noreferrer"&gt;custom notifications in Flow&lt;/a&gt; shows how to set up those alerts without code, so nothing important waits on someone remembering to check.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bottom line
&lt;/h2&gt;

&lt;p&gt;Opportunity stages work when they describe the customer's journey, not the rep's activity log. Keep the list short, define the exit rule for each stage, and review stalled deals every week. A pipeline your reps trust is a pipeline your forecast can actually use.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://way2force.com" rel="noopener noreferrer"&gt;Way2Force&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>salesforce</category>
      <category>salesforceadmin</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
