Posts

Showing posts with the label Tooling

Deploying Apex code in Salesforce can be done through various methods.

Deploying Apex code in Salesforce can be done through various methods, each with its own advantages and use cases. Here are different ways to deploy Apex code: Deploying Apex Salesforce Metadata API : The Metadata API allows you to deploy Apex classes, triggers, Visualforce pages, and other metadata components using tools like Salesforce CLI, Force.com Migration Tool (ANT), or IDEs such as VS Code with Salesforce Extensions. This method provides fine-grained control over deployments and is suitable for complex projects with multiple developers. Salesforce DX (SFDX) : Salesforce DX provides a modern development experience for building and deploying Salesforce applications. With SFDX, you can use commands like force:source:deploy or force:source:push to deploy Apex code along with other source files directly to your Salesforce org or Scratch Orgs. SFDX is ideal for CI/CD pipelines and continuous integration workflows. Change Sets : Change Sets are a point-and-click tool in Salesforce tha...

Salesforce EntityParticle

Image
Entity Particle  Represents each element of a field that can be presented in a user interface. Contrast EntityParticle with FieldDefinition, which represents each element of a field defined in the Metadata API. EntityParticle has parity with describe, which returns API-accessible fields only for an entity. EntityParticle Let's say there is a requirement to fetch all picklist fields along their label, API Name. SOQL query using Entity Particle  SELECT EntityParticle.DeveloperName, Label, Value, IsActive, EntityParticle.IsDependentPicklist, EntityParticle.FieldDefinition.ControllingFieldDefinition.DeveloperName FROM  PicklistValueInfo  WHERE EntityParticle.EntityDefinition.QualifiedApiName = 'Case'  AND EntityParticle.IsDependentPicklist = TRUE  ORDER BY EntityParticleId, Label Results Retrieve all the fields of the 'Phone' data type

Salesforce EntityLimit

Image
EntityLimit EntityLimit is used to retrieve Limits displayed in the Setup UI for an object. EntityLimit Considerations SOQL Limitations SOSL Limitations Here's an example to retrieve the limits of an Object