Posts

Showing posts from December, 2014

Person Accounts in Salesforce

Image
Person Accounts in Salesforce are a special type of account designed to represent individual consumers rather than businesses or organizations. Enable Person Accounts In Salesforce, Person Accounts are represented by records with the " __pc " suffix appended to their API names. This suffix stands for "Person Account." When Person Accounts are enabled in Salesforce, they create a hybrid record type that combines elements of both the Account and Contact objects into a single record. All standard and custom fields associated with Person Accounts will have the " __pc " suffix appended to their API names. For example, if you have a custom field named " PreferredLanguage__c ," it will appear as " PreferredLanguage__pc " for Person Accounts. Siginificance of a Person Accounts in Salesforce Definition : A Person Account in Salesforce is essentially a hybrid record type that combines elements of both the Account and Contact objects. It represen...

Implement deletion of checked values in a Visualforce page

Here's a simplified example to illustrate the approach: Visualforce Page <apex:page controller="MyController">     <script>         function deleteSelectedRecords() {             var selectedIds = [];             // Loop through checkboxes and collect IDs of checked records             document.querySelectorAll('input[type="checkbox"]:checked').forEach(function(checkbox) {                 selectedIds.push(checkbox.value);             });             // Call server-side method to delete selected records             MyController.deleteRecords(selectedIds, function(result, event) {                 // Handle response from server                 if (event....