Relationship in Salesforce

How to Create Relationship between fields in Salesforce using Look up and Master Detail In database we link one table with another table using join statements,Primary Key and Foreign Key so that we can access data of one table in another table but in Salesforce we don’t use these statements,in order to establish a relation [...]

Order of Execution – Salesforce

1) Loads the  record from the database or initializes the record for an upsert statement. 2) Loads the new record field values from the request and overwrites the old values with new values. If the request came from a standard User Interface edit page,  runs system validation to check the record for: -Checks whether Required [...]

VISUAL FLOWS IN SALESFORCE

Hearing the word flow in salesforce we start thinking about the workflow i.e. defining criteria and firing action. So the question arise that weather flow is the amplified version of workflow or not? So the answer is a big “no”, flow is completely different form the workflow. Workflow let you automate your process letting you [...]

limitations of changesets in salesforce

We cannot deploy all the types of metadata components in one shot. We can deploy only sandbox to sandbox or sandbox to production Either deploy all the components or rollback all the components on any failure.There is no way to deploy successful components and ignore the failed components. Salesforce Changesets do not support all types [...]

Avoid recursive trigger in salesforce using static variable

Avoid recursive trigger in salesforce using static variable Avoid recursive trigger in salesforce using static variable Recursion occurs when same code is executed again and again. It can lead to infinite loop and which can result to governor limit sometime. Sometime it can also result in unexpected output. It is very common to have recursion [...]

Trigger for Auto Converting Leads

Trigger for Auto Converting Leads Requirement:- Webform__c is custom text field  on lead . And Whenever new lead is created with Webform__c=='free trail' then lead should be converted autmatically trigger AutoLeadConvert on Lead (after insert) { leadStatus convertStatus =[SELECT MasterLabel FROM LeadStatus WHERE isConverted = true Limit 1];  List<Database.LeadConvert> leadConverts = new List<Database.LeadConvert>();  for(lead lead:Trigger.new){    [...]

Lead Conversion Trigger Order of Execution

Lead Conversion Trigger Order of Execution On conversion of Lead following is the order of execution of triggers of Account, Opportunity, Contact and Lead: 1) Account Before Trigger 2) Account After Trigger 3) Opportunity Before Trigger 4) Opportunity After Trigger 5) Contact Before Trigger 6) Contact After Trigger 7) Lead Before Trigger 8) Lead After [...]

Roll Up Summary Triggers on LookUp Relationship

Generally we can create rollup summary fields in between Master_Detail relationship. if we want to create roll up summary  fields in between look up relation we need to  write a trigger. Requirement :- Custom field On contact :Salary__C Custom field on Account :Total_salary__C Count the sum of  salaries of contact with same AccountId  and the sum [...]

Salesforce Spring16 release quick summary

Salesforce published Spring’16 release(Preview) notes. The Spring’16 release of Salesforce.com is now in available under pre-release program. On 08th JanuarySandboxes will be upgraded, so that your organization gets the look and feel ofSpring’16 release. In this release you can find lot’s of new features as well as enhancements like Lightning Experience now support Person Accounts (Beta),Show Details in [...]