Skip to main content

Posts

Showing posts with the label VISUALFOFCE

Latest Post

Record Types & Page Layout Strategy

  Record Types & Page Layout Strategy 💬 In plain words:   Record Types let one object act like different forms for different teams. Different picklist values, page layouts, and processes — same Account object. Use them for truly different business processes. Not for cosmetic layout changes. 📌 Example:   One Account object, two businesses: 'Retail Customer' record type shows B2C picklist values and layout. 'Enterprise Client' shows contract fields and a different sales process. Same table, two costumes. 🧠 One object, many costumes:   A Record Type is a costume on the same object — different picklists and layouts, same table underneath. Concept Record Types split one object into business variants. •   Each type can carry its own subset of picklist values, its own business process — Lead, Case and Opportunity stages — and its own page layout per profile. •   Lightning has changed the calculus. Dynamic Forms and conditional comp...

Show all project component (apex class, Visualforce page, customobjects etc )in Single Visualforce page

 Here is sample code to view all project related components in Visualforce page (apex class, vf pages, permission set, public groups etc) Class Code :- public class Project_Components {     transient public List<displayListWrapper> displayList{get;set;}     transient public List<ApexClass> ClassList{get;set;}     transient public List<PageClassWrapper> pageClassList{get;set;}     transient public List<PermissionSet> permissionSetList{get;set;}     transient public List<Group> publicGroupList{get;set;}     transient public List<ProcessDefinition> processList {get;set;}     transient public List<ApexTrigger> triggerList {get;set;}     transient public List<ApexComponent> apexComponentList{get;set;}     transient public Map<String,String> objectNameVsLabelMap{get;set;}     transient public List<ObjectRelationshipWrapper> object...

Upload document using rest api from apex class salesforce

 Introduction: In Salesforce, the Apex programming language provides powerful capabilities to extend and customize the platform. One common requirement is to upload documents or files programmatically to Salesforce using the REST API. In this blog post, we will explore how to accomplish this task by leveraging Apex classes in Salesforce.