Author: Magulan Duraipandian
How to create Many to Many Relationship(Junction Object) in Salesforce?
You can use master-detail relationships to model many-to-many relationships between any two objects. A many-to-many relationship allows each record of one object to be linked to multiple records from another ....
Standard Objects in Salesforce
Standard objects are objects that are included with Salesforce. Common business objects like Account, Contact, Lead, and Opportunity are all standard objects. Trailhead - https://trailhead.salesforce.com/en/content/learn/modules/data_modeling/objects_intro Reference Link - https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_list.htm
CSS for stylish button
Sample Code: <!DOCTYPE html> <html> <head> <style> .button { color:white; font-size:12px; font-weight:bold; border:outset; text-align:center; border-color:black; background-color: black; } </style> </head> <body> <button class="button">Sample Button</button> </body> </html>
How to upload multi picklist values through data loader?
For inserting or updating multi select pick list fields through the Apex Data Loader, multiple values for the mulit picklist field are separated by a semi-colon ";". For example, for a ....
Age calculation using Apex and Visualforce
Sample code: Visualforce page: <apex:page controller="Sample" ><apex:form > <apex:pageblock > <apex:pageblockSection > <apex:pageblockSectionItem >Date:</apex:pageblockSectionItem> <apex:pageblockSectionItem ><apex:inputtext onfocus="DatePicker.pickDate(true, this , false);" value="{!dat}" id="dt"/></apex:pageblockSectionItem> <apex:pageblockSectionItem >Age:</apex:pageblockSectionItem> <apex:pageblockSectionItem ><apex:outputText value="{!age}" /></apex:pageblockSectionItem> ....
How to import other language data using Apex Data loader?
Kindly follow the below steps to import other language data using Apex Data loader 1. Open the .xls file that displays the other language characters correctly and which was prepared ....
How to use multiple substitute function in Salesforce?
We have to use nested SUBSTITUTE() methods for multiple replacing of characters. Example: SUBSTITUTE( SUBSTITUTE( Name, " ", "" ) ,"-","" ) In this example, we can remove "-" and ....
Validation rules for Country codes(USA, Mexico, Argentina, Canada, Australia) in Salesforce
Example: OR( AND( ISPICKVAL( Country_Code__c , "USA"),NOT( REGEX( Pincode__c , "\d{5}(-\d{4})?") ) ), AND( ISPICKVAL( Country_Code__c , "MEX"), NOT(REGEX( Pincode__c , "\d{5}")), NOT(REGEX( Pincode__c , "\d{6}")) ), AND( ISPICKVAL( Country_Code__c ....
What is Database.setSavepoint in Salesforce?
Database.setSavepoint() in Salesforce apex can be used to rollback the transaction to a point. It helps in partial rollback on the transactions. Database.setSavepoint() is used to define a point at ....