Category: salesforce

Salesforce, Apex, Visualforce, SOQL related posts

Salesforce Certified Sharing and Visibility Designer Exam

Sharing and Visibility Designer Exam

Salesforce Certified Sharing and Visibility Designer Exam Tips How to pass Salesforce Certified Sharing and Visibility Designer Exam My Experience This is one of easiest exam from all architect exam.  I believe it should be easy for everyone who has good knowledge about salesforce security model. Salesforce Security is fundamentals of Salesforce platform. Everyone who …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/salesforce-certified-sharing-and-visibility-designer-exam/

Step by Step Guide for using Salesforce Command Line Interface Data Loader

Check JRE Installation and Path

In this article, I will cover a step by step guide for using Salesforce Command Line Interface Data Loader: So first of all what is Command Line Interface Data Loader, and why should we use it from Command Line when there is already a visual user interface provided? Well, the answer is: You can automate the …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/step-by-step-guide-for-using-salesforce-command-line-interface-data-loader/

Salesforce Web to lead form with reCAPTCHA

Register for ReCaptcha API Key with Google.

Salesforce has already provided a cool out of the box feature where you can generate HTML for the web to lead form, which you can simply put on your website. It is very simple to generate the customized form with fields of your choice to generate leads for your company through various company portals or …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/salesforce-web-to-lead-form-with-recaptcha/

OpportunityAccessLevel field not writable in Apex

Opportunity Team Member Manually

Recently, I was working on an assignment, where I had to create Opportunity Team Member records in a trigger on some user action. But when I started to write the code and tried saving it, I got the error “Field is not writeable: OpportunityTeamMember.OpportunityAccessLevel“. Uuuhhh.. I got stuck! According to the documentation this field is writable, …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/opportunityaccesslevel-field-not-writable-in-apex/

Pagination using StandardSetController with wrapper class

PaginationImage

Pagination using StandardSetController with wrapper class without losing data during pagination Click here for Demo – Pagination with wrapper Very often, we need pagination in our visualforce page, and we use wrapper class to show the records with checkboxes in pageBlockTable. We use the standardSetController for pagination, display checkboxes for each record BUT while paginating, the …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/pagination-using-standardsetcontroller-with-wrapper-class/

Only Aggregate Expressions Use Field Aliasing – SOQL Error

Only Aggregate Expressions Use Field Aliasing – SOQL Error Out of many other errors we encounter, this is one with the SOQL. Many times, when writing SOQL, we face the error – “Only Aggregate Expressions Use Field Aliasing” and we are stuck that what’s happening, everything seems all right to me. You must be missing …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/only-aggregate-expressions-use-field-aliasing-soql-error/

TestSetUp method in apex test classes

TestSetUp method in apex test classes Test classes are an important part of overall SDLC in Salesforce. We as a developer have to write the test classes very often, and we need to create the test data as well, to have our test class executed successfully. We’ll cover a new concept introduced in salesforce test classes …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/testsetup-method-in-apex-test-classes/

Compare old and new field values in trigger

Compare old and new field values in trigger Salesforce Sometimes we have requirement that our trigger should run only when some field value is changed on a record. So we need to compare value of that field between old version of record and new version of record to make sure that trigger will not run every …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/compare-old-and-new-field-values-in-trigger/

Use static resource in Visualforce

Static resource archive structure

Use static resource in Visualforce – Salesforce Force.com platform provides us a facility to upload, manage and use the content that is static (not changing) for your organization, and it can be stored under “Static Resources“. It can be a Javascript file, CSS file, an image or even a zip file containing all the files …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/use-static-resource-in-visualforce/

apex:pageMessage and apex:pageMessages – Salesforce

pageMessages

apex:pageMessage and apex:pageMessages – Salesforce Most of the times we are confused between these two visualforce components i.e. apex:pageMessage and apex:pageMessages. A small different of ‘s’. Let’s see the difference between apex:pageMessage and apex:pageMessages – Salesforce. We are confused that which one should we use, and in which case. There is a small difference between these two. …

Continue reading

Permanent link to this article: http://www.sfdcpoint.com/salesforce/apexpagemessage-and-apexpagemessages-salesforce/