Skip to content

Kartikpatkar/salesforce-package-xml-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¦ Salesforce Package XML Generator – Metadata Explorer & Deployment Tool

License: MIT Version Chrome Extension Salesforce

Tagline: Explore Salesforce metadata and generate accurate package.xml files β€” visually, securely, and effortlessly.


✨ Overview

Salesforce Package XML Generator is a modern, developer-focused Chrome Extension that helps you browse Salesforce org metadata and generate deployment-ready package.xml files without writing XML manually.

Built for Salesforce developers who frequently work with:

  • Metadata deployments
  • Partial deployments
  • CI/CD preparation
  • Sandbox β†’ Production releases
  • Multi-org environments

The extension focuses on accuracy, speed, and clarity, using Salesforce Tooling API and Metadata API directly β€” no scraping, no middleware.


πŸš€ Key Features

πŸ” Salesforce Org Detection & Authentication

  • Automatically detects the currently active Salesforce org

  • Supports:

    • Production
    • Sandbox
    • Developer Edition
    • Scratch Orgs
  • Uses existing Salesforce browser session

  • No OAuth setup

  • No credentials stored

  • Real-time connection status indicator


🧩 Metadata Type Explorer

  • Displays a searchable list of Salesforce metadata types

  • Dynamically loads metadata types from the connected org

  • Intelligent fallback to default metadata list if API discovery fails

  • Commonly supported types include:

    • ApexClass
    • ApexTrigger
    • ApexPage
    • ApexComponent
    • CustomObject
    • CustomField
    • Layout
    • Profile
    • PermissionSet
    • Flow
    • CustomMetadata
    • CustomLabel
    • Workflow
    • ValidationRule
    • RecordType

πŸ“‚ Metadata Component Viewer

  • Click any metadata type to view actual components present in the org

  • Uses the correct Salesforce API per metadata type:

    • Tooling API for Apex metadata
    • Metadata API (listMetadata) for configuration metadata
  • Displays real-time component count

  • Gracefully handles:

    • Empty metadata
    • Unsupported metadata types
    • API errors

β˜‘οΈ Fine-Grained Selection

  • Select individual metadata components
  • β€œSelect All” support per metadata type
  • Search within metadata components
  • Selections persist across sessions using Chrome Storage

πŸ“¦ Smart package.xml Generator

  • Generates valid Salesforce package.xml

  • Supports:

    • Full wildcard deployment (<members>*</members>)
    • Partial deployments (specific components only)
  • Live package.xml preview

  • Automatically updates as selections change

  • Configurable Salesforce API version

  • One-click download

  • Copy-to-clipboard support


🎨 Clean & Developer-Friendly UI

  • Three-panel layout:

    • Metadata Types
    • Metadata Components
    • Package XML Preview
  • Responsive design

  • Dark / Light mode support

  • Toast notifications for actions and errors

  • Designed for daily Salesforce development workflows


🧼 Clear & Reset

  • Clear all selections instantly
  • Reset metadata and preview state
  • Safely switch between Salesforce orgs

πŸ–₯️ UI Philosophy

Salesforce Package XML Generator is designed with:

  • Zero unnecessary complexity
  • Clear visual hierarchy
  • Fast navigation between metadata
  • Readable XML preview
  • Developer-first usability

πŸ“Έ Screenshots

πŸ”· Light Mode

Light Mode - Editor Page

πŸŒ‘ Dark Mode

Dark Mode - Editor Page


πŸ›  Built With

  • HTML, CSS, JavaScript (Vanilla)
  • Chrome Extensions API (Manifest V3)
  • Salesforce Tooling API
  • Salesforce Metadata API
  • Modular, message-driven architecture

πŸ“¦ Installation

πŸ”§ Load Extension Manually (Developer Mode)

  1. Clone or Download this Repository

    git clone https://github.com/Kartikpatkar/salesforce-package-xml-generator.git
  2. Open Chrome Extensions Page

    chrome://extensions/
    
  3. Enable Developer Mode

    • Toggle Developer mode (top-right)
  4. Click β€œLoad unpacked”

    • Select the project root folder (contains manifest.json)
  5. Done πŸŽ‰

    • Open Salesforce and click the extension icon

βœ… Works with existing Salesforce login βœ… No external servers βœ… No data stored outside the browser


πŸ§ͺ Current Capabilities

βœ” Salesforce org auto-detection βœ” Metadata type discovery βœ” Metadata component listing βœ” Tooling API & Metadata API support βœ” Partial & full package.xml generation βœ” Live XML preview βœ” Persistent selections βœ” Dark / light themes


πŸ›£οΈ Roadmap (Planned Enhancements)

  • πŸ“¦ Metadata ZIP retrieve support
  • 🧨 destructiveChanges.xml generation
  • πŸ‘€ Profile & PermissionSet sub-component selection
  • πŸ” Metadata search across types
  • πŸ”„ Org-to-org metadata comparison
  • πŸ’Ύ Saved package presets

🀝 Contributing

Contributions, bug reports, and feature requests are welcome!

  • Fork the repository
  • Create a feature branch
  • Submit a pull request

Please keep changes modular and follow the existing code structure.


🧠 Author

Built by Kartik Patkar Salesforce Developer β€’ Chrome Extension Builder


πŸ“œ License

This project is licensed under the MIT License β€” free to use, modify, and distribute.


Salesforce Package XML Generator β€” because deployments should be precise, fast, and stress-free πŸš€


Releases

No releases published

Packages

 
 
 

Contributors