generating-custom-object

Generate Salesforce CustomObject metadata XML using Python libraries.

Updated Jun 1, 2026
One-click install
npx skills add https://github.com/Collabalist/SFDC --skill generating-custom-object-collabalist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generating-custom-object
Source: https://github.com/Collabalist/SFDC/tree/main/.agents/skills/generating-custom-object
Command: npx skills add https://github.com/Collabalist/SFDC --skill generating-custom-object-collabalist

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sfdx, xml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the creation and configuration of Salesforce Custom Object metadata, reducing manual efforts and potential errors during deployment.

Core Features & Use Cases

  • Custom Object Creation: Generate metadata for new custom objects efficiently.
  • Metadata Configuration: Set up object sharing, security, and feature configurations.
  • Deployment Error Handling: Troubleshoot common deployment errors related to object metadata.

Quick Start

Generate metadata for a new custom object 'Order__c' with the name field set to 'Order Name' and sharing model set to 'ReadWrite'.

Frequently Asked Questions about generating-custom-object

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Salesforce custom object metadata generation?

You can automate Salesforce custom object metadata generation by using Python libraries to construct and validate the custom object XML. This approach streamlines creation and configuration while reducing manual deployment efforts.

What is the best way to set up sharing models for Salesforce custom objects?

The best way to set up sharing models for Salesforce custom objects is to define the sharing configuration directly within the generated metadata XML. Automating this configuration ensures correct security and sharing rules are applied during deployment.

How do I troubleshoot Salesforce custom object metadata deployment errors?

To troubleshoot Salesforce custom object metadata deployment errors, you should validate the generated XML structure against the Salesforce metadata API requirements. Identifying and correcting structural discrepancies in the XML resolves common deployment failures.

Do I need SFDX to generate Salesforce custom object XML?

You do not necessarily need SFDX to generate the custom object XML itself, as the generation relies on Python and XML libraries, but SFDX is required as a dependency to deploy the generated metadata to your Salesforce environment.

Can I configure custom object security and features using metadata generation?

Yes, you can configure custom object security and features using metadata generation. The process allows you to define object sharing, security settings, and feature configurations directly within the generated XML file for deployment.

Why does my Salesforce metadata deployment fail due to custom object XML errors?

Salesforce metadata deployment fails due to custom object XML errors when the generated file does not conform to the strict structure expected by the Salesforce metadata API. Validating the XML before deployment prevents these configuration errors.