Tagline: Explore Salesforce metadata and generate accurate
package.xmlfiles β visually, securely, and effortlessly.
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.
-
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
-
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
-
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
- Select individual metadata components
- βSelect Allβ support per metadata type
- Search within metadata components
- Selections persist across sessions using Chrome Storage
-
Generates valid Salesforce
package.xml -
Supports:
- Full wildcard deployment (
<members>*</members>) - Partial deployments (specific components only)
- Full wildcard deployment (
-
Live package.xml preview
-
Automatically updates as selections change
-
Configurable Salesforce API version
-
One-click download
-
Copy-to-clipboard support
-
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 all selections instantly
- Reset metadata and preview state
- Safely switch between Salesforce orgs
Salesforce Package XML Generator is designed with:
- Zero unnecessary complexity
- Clear visual hierarchy
- Fast navigation between metadata
- Readable XML preview
- Developer-first usability
- HTML, CSS, JavaScript (Vanilla)
- Chrome Extensions API (Manifest V3)
- Salesforce Tooling API
- Salesforce Metadata API
- Modular, message-driven architecture
-
Clone or Download this Repository
git clone https://github.com/Kartikpatkar/salesforce-package-xml-generator.git
-
Open Chrome Extensions Page
chrome://extensions/ -
Enable Developer Mode
- Toggle Developer mode (top-right)
-
Click βLoad unpackedβ
- Select the project root folder (contains
manifest.json)
- Select the project root folder (contains
-
Done π
- Open Salesforce and click the extension icon
β Works with existing Salesforce login β No external servers β No data stored outside the browser
β 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
- π¦ Metadata ZIP retrieve support
- π§¨
destructiveChanges.xmlgeneration - π€ Profile & PermissionSet sub-component selection
- π Metadata search across types
- π Org-to-org metadata comparison
- πΎ Saved package presets
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.
Built by Kartik Patkar Salesforce Developer β’ Chrome Extension Builder
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 π
.png)
.png)