Author: senseab05

  • Introducing SmartBulk: A Free, Salesforce-Native Bulk Utility

    If you’ve ever had to clean up data or update hundreds of records in Salesforce, you know how painful it can get—especially when you want to stay fully native and avoid relying on external utilities.

    I’m excited to share SmartBulk, a 100% free Salesforce admin utility that helps teams perform bulk view, bulk update, and bulk delete operations directly inside Salesforce.

    Status: SmartBulk is currently under AppExchange review.
    🔗 The AppExchange listing link will be available soon.


    What SmartBulk does

    SmartBulk helps you:

    • View records in bulk based on predefined configurations
    • Update records in bulk, including inline edits where applicable
    • Delete selected records in bulk, only when the user has required permissions
    • Work faster on common admin tasks like cleanup, standardization, and maintenance

    Typical use cases include:

    • Pre-deployment cleanup
    • Fixing incorrect field values across many records
    • Removing invalid/test records safely
    • Standardizing picklists/fields across a dataset

    Built for “native-first” admins (no external tools)

    SmartBulk is designed to be fully Salesforce-native:

    • No Tooling API
    • No Salesforce Inspector
    • No browser extensions
    • No external services or integrations
    • No data stored outside Salesforce

    Everything runs within the Salesforce platform, under the logged-in user’s access.


    Who should use SmartBulk?

    SmartBulk is useful for:

    • Salesforce Admins
    • Release / DevOps teams
    • Teams doing ongoing data hygiene
    • Orgs that prefer secure, compliant, platform-native solutions

    Availability

    SmartBulk is currently submitted for AppExchange review.
    I’ll share the official AppExchange link once it’s approved and live.


    Final note

    My goal with SmartBulk is simple:
    Make bulk operations faster for admins—without relying on external tooling—and keep it free forever.

    More updates soon. 🚀

  • 🔍 Metadata Explorer Is Now Live on Salesforce AppExchange!

    I’m excited to share that Metadata Explorer is now officially live on the Salesforce AppExchange.

    What started as a simple internal utility to help me navigate metadata across Salesforce orgs has now evolved into a complete Lightning application designed to make metadata exploration faster, clearer, and developer/admin-friendly.


    🌟 Why I Built Metadata Explorer

    Working across multiple orgs at UNICEF and various packages, I frequently needed a quick way to:

    • Inspect metadata structures
    • Explore Apex classes, triggers, profiles, and permission sets
    • Find and review custom fields
    • Analyze model tables and related objects
    • Speed up impact analysis before deployments

    Most existing tools were:

    • slow
    • outdated
    • or required external setup

    So I built Metadata Explorer — a native, LWC-powered app that allows instant metadata exploration directly inside Salesforce.


    ✨ Key Features

    🔎 Explore 14+ Metadata Types

    View and analyze many important Salesforce components, including:

    • Apex Classes
    • Apex Triggers
    • Profiles
    • Permission Sets
    • Record Types
    • Custom Fields
    • Custom Objects
    • Page Layouts
    • And more

    Everything is visible in one clean interface for quick understanding of an org’s metadata structure.

    ⚡ Lightning-Fast LWC Interface

    Built entirely with Lightning Web Components for a clean, responsive, and modern UI.

    📄 Export Support

    Export metadata details for:

    • documentation
    • DevOps reviews
    • impact analysis
    • technical scoping

    🧭 Simple, Intuitive Navigation

    Switch between metadata types effortlessly without writing a single line of SOQL or using external tools.


    🧩 Who Is Metadata Explorer For?

    • Salesforce Admins
    • Developers
    • Architects
    • DevOps / Release Engineers
    • Consultants handling multiple orgs

    If you need quick visibility into any part of an org’s metadata, this tool saves time and improves analysis accuracy.


    🔗 Install Metadata Explorer

    You can install the app directly from the Salesforce AppExchange:

    👉 https://appexchange.salesforce.com/appxListingDetail?listingId=d011486b-88ac-4000-9bb7-37a5f6c7f945


    🙏 Thank You

    A huge thank you to everyone who supported this project throughout the build and review process.
    Seeing Metadata Explorer pass Salesforce’s Security Review and go live on AppExchange is a proud milestone in my ISV journey.

    More enhancements, metadata coverage, and new utilities are coming soon!

    #CloudWithAbhi

  • 🧩 Client Credentials Flow: New Invalid Scope Error

    Salesforce has updated the OAuth 2.0 Client Credentials flow in the Winter ’26 Release to return a clear error when a token request has no valid scopes. This makes debugging integration issues much simpler.


    🔐 The Change

    When a token request is made using grant_type=client_credentials and Salesforce finds that none of the effective scopes are supported, it now returns the following descriptive error:

    {
      "error": "invalid_grant",
      "error_description": "no valid scopes defined"
    }
    
    

    What It Means

    • Applies only to the Client Credentials flow — other OAuth 2.0 flows are unaffected.
    • If a request includes both supported and unsupported scopes, Salesforce drops the unsupported ones and issues a token for the valid scopes.
    • If all scopes are unsupported, Salesforce rejects the request with the error above.

    Unsupported scopes (examples):

    • full → Full access
    • refresh_token / offline_access → Perform requests at any time

    Typical supported scope for integrations:

    • api → Manage user data via APIs

    🧊 Release Timeline

    This update is part of Salesforce Winter ’26, with production rollouts starting September 19, 2025.


    ❓ Why You Might See This Error

    Many integrations using the Client Credentials flow don’t send the scope parameter — and that’s fine.
    In such cases, Salesforce uses the scopes configured in the Connected App’s Selected OAuth Scopes section.

    If that Connected App contains only unsupported scopes, the request resolves to no valid scopes, resulting in:

    invalid_grant: no valid scopes defined
    
    

    Fix: Ensure at least one supported scope (like Manage user data via APIs (api)) is selected in your Connected App, even if your integration doesn’t explicitly send a scope.


    🧭 How to Find and Fix

    Step 1: Inventory

    • Identify all integrations using grant_type=client_credentials (e.g., Named Credentials, middleware, background jobs).
    • Locate the corresponding Connected Apps.
    • Review their Selected OAuth Scopes.

    Step 2: Remediate

    1. Go to Setup → App Manager → Manage Connected Apps → [App Name] → Edit Policies
    2. Under Selected OAuth Scopes, add:
      • Manage user data via APIs (api)
    3. Remove unsupported scopes (full, refresh_token, etc.).
    4. Ensure the Run As user has:
      • API Enabled
      • Required object CRUD/FLS permissions

    Step 3: Add Guardrails

    • Don’t send scope in the request — rely on Connected App scopes.
    • Monitor for token errors containing invalid_grant and “no valid scopes defined.”
    • Document your Connected App scope policy and integration user permissions.

    🧠 Summary

    AreaDetails
    Applies ToOnly OAuth 2.0 Client Credentials Flow
    ChangeNew descriptive error for missing valid scopes
    ReleaseWinter ’26 (starts Sep 19, 2025)
    ImpactToken requests with unsupported scopes now fail clearly
    FixAdd Manage user data via APIs (api) to Connected App scopes
    Best PracticeRely on Connected App configuration instead of sending scope

    💡 Pro Tip

    If you’re using Azure Logic Apps, MuleSoft, Boomi, or Postman collections with grant_type=client_credentials, review your Connected Apps now and ensure at least one supported scope is configured before Winter ’26 rolls out.


    🏁 Final Thought

    This update impacts only the Client Credentials flow, improving clarity for integration developers.
    By ensuring every Connected App includes the api scope, you’ll keep your machine-to-machine integrations running smoothly through Winter ’26 and beyond.

  • ApexGuru – Boost Salesforce Code Quality

    Intelligent Code Analysis & Recommendations for Apex

    What you will learn

    1. What is ApexGuru?
    2. Why ApexGuru?
    3. Who will benefit?
    4. Analysis with Live Examples?

    As our organization continues to expand its digital footprint, the role of Salesforce has become increasingly mission-critical. With multiple Salesforce instances supporting diverse business units, ensuring consistency, code quality, and performance has become both a challenge and an opportunity. Now is the time to seize that opportunity.

    What is ApexGuru?

    ApexGuru is an advanced platform purpose-built for Salesforce engineering teams. It offers real-time insights into code health, technical debt, and performance metrics. Unlike generic monitoring tools, ApexGuru is deeply integrated into the Salesforce development lifecycle, offering actionable intelligence tailored to our needs.

    Why ApexGuru?

    ApexGuru enables us to overcome these obstacles through:

    • Standardization Across Orgs: Enforce consistent coding and architectural standards.
    • Risk Mitigation: Identify performance bottlenecks, security vulnerabilities, and technical debt before they affect end users.
    • Productivity Gains: Empower development teams with clear insights and reduce time spent on code reviews and rework.
    • Strategic Visibility for Leaders: Provide dashboards and metrics that help leadership assess org health and allocate resources effectively.

    Features

    •For Developers/Reviewers:
    Catch issues early, improve skills, write cleaner code. Not only static but run-time errors as well.

    For Architects:
    Enforce enterprise standards across teams

    For Managers:
    Visibility into team code quality, faster reviews

    For DevOps:
    Integrates into CI/CD tools for smoother deployments

    Examples:

    Take a look at the code snippet below — can you spot the problem?

    Hmm… let me guess — most of us will spot the static errors right away. But what about the runtime errors?

    Issue:

    The getGlobalDescribe() method can cause performance issues as the schema of related objects grows larger.

    ApexGuru Insight

    Any guesses before I move on? Just kidding! 😄

    You can use the forName method to get the instance of the object and then call getSObject() on it.

    But hey, no need to spend hours digging deep — ApexGuru does all the heavy lifting for you.

    What about the below code snippet?

    Issue:

    Using an IN-bind filter with a large list in a SOQL query can be expensive and inefficient. It may even cause query failures due to the query string exceeding Salesforce limits.

    ApexGuru Insight

    Use a Contact map to retrieve records instead of directly using a large list in the IN-bind clause. Then, leverage this map to process and drive your results efficiently.

    Wow — isn’t that powerful? It definitely makes code reviews much easier.
    Of course, some might still debate this approach, right?

    Static Error Insights

    It’s not just about runtime insights — it also provides static analysis to catch issues early.

    ApexGuru Insight

    Enable ApexGuru

    1. Check Org Eligibility:
      • Apex Guru is only available in Performance, Enterprise, and Unlimited Editions.
      • Must be a Production or Full Copy Sandbox (because it uses actual telemetry data).
    2. Reach Out to Salesforce Account Executive (AE):
      • Since it is a pilot, your AE needs to submit a request to enable it in your org.
      • Mention explicitly that you want to join the Apex Guru pilot program.
    3. Salesforce Internal Team Review:
      • Salesforce evaluates your org’s suitability for the pilot.
      • If approved, they enable Apex Guru and share documentation/access.
    4. Enable Scale Centre:
      • Go to Setup in your production org.
      • Search for “Scale Center” in the Quick Find box.
      • Click Scale Center Settings.
      • Toggle on Enable Scale Center.
      • Click Save.
    5. Enable ApexGuru Insights
      • Once Scale Center is active
      • In Setup, search for “ApexGuru” or “ApexGuru Insights”.
      • Open ApexGuru Insights Settings.
      • Enable the toggle: Enable ApexGuru Insights.
      • Click Save.
    6. Access Apex Guru:
      • Once enabled, go to Setup → Apex Guru.
      • Review recommendations, code insights, and suggested improvements.
    Org TypeApexGuru Availability
    Developer Edition❌ Not Available
    Scratch Org❌ Not Available
    Sandbox (Developer)❌ Not Available
    Sandbox (Full Copy)✅ Available (if pilot enabled)
    Production Org (Enterprise/Unlimited/Performance)✅ Available (if pilot enabled)

    Coming Up Next

    1. ApexGuru Metrics
      • Explore the key performance indicators and telemetry data captured by ApexGuru.
    2. Integration with CI/CD Tools
      • Learn how ApexGuru can be leveraged to enhance automated quality checks in your CI/CD pipeline.