Skip to main content

Posts

Showing posts with the label custom visualforce page

Latest Post

Custom Metadata Types vs Custom Settings vs Custom Labels

  Custom Metadata Types vs Custom Settings vs Custom Labels 💬 In plain words:  Three lookalikes: Custom Metadata = configuration that DEPLOYS with your code (best for app settings). Custom Settings = org/user-specific values, changeable at runtime (hierarchy type is great for bypass switches). Custom Labels = translatable text for the UI. 📌 Example:  API endpoint URLs per environment → Custom Metadata (deploys with code, sandbox vs prod values). A 'Bypass_Automation__c' checkbox an admin flips during data load → hierarchy Custom Setting. The word 'Submit' translated to Hindi → Custom Label. 🎬 Real-Life Example: The Fee Table Trapped Inside Code  Skyline charges a different delivery fee per city. Apex needs those rates on every booking. The Old/Bad Way:  if (city == 'Delhi') fee = 50. Else if (city == 'Mumbai') fee = 65. … Every rate change is a code change, a test run, and a deployment. Why this is bad:  Business data is trappe...

Building Dynamic Question-Answer Functionality with Visualforce Code

Introduction: In this blog post, we will explore how to implement dynamic question-answer functionality using Visualforce code. Visualforce is a powerful framework provided by Salesforce that allows developers to build custom user interfaces and extend the functionality of their Salesforce applications. By leveraging Visualforce, we can create a dynamic and interactive question-answer feature that enhances the user experience and improves data collection. Let's dive into the implementation details! 1. Setting up the Visualforce Page: First, create a Visualforce page by navigating to Setup in your Salesforce org and selecting "Develop" > "Pages." Click on "New" to create a new Visualforce page. Give it a name and specify the standard controller or custom controller for the object you will be working with.    Start by creating a Visualforce page where you will display the questions and capture user input.    <apex:page controller="Questi...

Efficient Data Table Pagination in Apex and Visualforce Pages

 Introduction: When dealing with large sets of data in Salesforce, it's essential to implement efficient pagination techniques to enhance user experience and optimize performance. One popular approach is using a data table with pagination in combination with Apex and Visualforce pages. In this blog post, we will explore how to implement a data table with pagination in Apex and Visualforce, enabling users to navigate through data seamlessly. Let's dive in and discover the steps to achieve efficient data table pagination in Salesforce. 1. Designing the Visualforce Page: - Create a Visualforce page that includes a data table component and pagination controls. - Define the columns to display in the data table and structure the page layout accordingly. - Incorporate CSS styles for an appealing and user-friendly interface. 2. Retrieving Data with Apex: - Develop an Apex controller or extension class to handle data retrieval from the Salesforce database. - Implement query logic to fet...

Mastering Session ID Retrieval in Salesforce: A Step-by-Step Guide

Introduction: The session ID is a crucial piece of information when working with Salesforce, as it grants access to the platform's various functionalities and APIs. In this guide, we will walk you through the step-by-step process of obtaining the session ID in Salesforce. By following these instructions, you'll be equipped with the knowledge to seamlessly integrate your applications with Salesforce and leverage its powerful features. Let's get started! Step 1: Utilizing the POST Method To begin, we need to use the POST method, which allows us to send a request to Salesforce's authentication endpoint. This request will contain the necessary information for logging in and retrieving the session ID. Step 2: Setting the Endpoint Depending on whether you are working in a sandbox or production environment, you will need to set the appropriate endpoint URL. For a sandbox, the URL should be set to: - Sandbox: https://test.salesforce.com/services/Soap/u/55.0 - Production: https:...

Integrating Google Bulk API with Apex Code in Salesforce

Introduction: The Google Bulk API provides a powerful way to manage and manipulate large sets of data in Google services. In this blog post, we will explore how to integrate the Google Bulk API with Apex code in Salesforce, allowing you to efficiently process and manipulate bulk data in Google services such as Google Sheets. We will provide code examples and step-by-step instructions to help you get started with the integration.

SLDS Path Component

SLDS path is a graphical representation of the process. Here is a component for this. Just pass the status of the process in this component. SLDS Path Component: <apex:component >     <apex:attribute name="Status" type="string" required="false" description="Status" default="Submit"/>         <article class="slds-card">         <div class="slds-card__body slds-card__body_inner">             <div class="slds-path">                 <div class="slds-grid slds-path__track">                     <div class="slds-grid slds-path__scroller-container">                         <div class="slds-path__scroller" role="application">                         ...

Popular Posts

Salesforce LWC Code for Multi-Select Lookup

Introduction: In Salesforce Lightning Web Components (LWC), implementing a multi-select lookup field can enhance the user experience and provide greater flexibility for selecting multiple related records. In this blog post, we will walk through the process of creating a multi-select lookup field using LWC. We will cover the required code snippets and provide step-by-step instructions to help you implement this functionality in your Salesforce org.