Welcome to SFDCTree!
Let’s say account is your parent object and Contact is your child object. You have a field Salary on Contact and you have Total Salary field on Account. Now your requirement is to add all child record’s salary and update the Total salary field on Parent Record. The below code will be useful to overcome… Continue reading Write a trigger which will populate sum of child field values on parent
Below is the explanation to display data in table format using pageBlockTable in Visualforce in Salesforce including Pagination. Go through the code below to understand the business logic and purpose of using pageBlockSection and pageBlockTable tags in visualforce. Here, in this example, i will show you the demo of displaying accounts fetched by writing a… Continue reading How to display data in table format in visualforce with pagination
This Article will define how to add Users to Public Groups using Trigger and Apex Class dynamically. There are few solutions possible for the above business scenario. We will use Apex Class to solve the above business requirement. Before proceeding ahead, you have to understand Group and GroupMember objects. Group: – This object represents Queue and Public Group both. Groups are sets of users. They can… Continue reading Add Users to Public Groups using Apex Trigger Salesforce