Sara Has No Limits

Good Programmers Evaluate, Simplify, Automate and Document

Working with Web Services

Custom Web Services The webservice keyword allows developers to create their own SOAP Web Services and defines methods that are inherently global Two ways to invoke Web Services: From the AJAX toolkit by importing the apex.js library and call the execute method From a client program by importing the WSDL and calling the custom method directly Access WSDL support through Setup -> Develop -> Classes Guidelines for Creating Custom Web […]

Continue Reading →

Deploying Apex Code

Deployment Process – Steps are as follows: 1.)    Develop Develop Unit Test Begin Integration Testing 2.)    Integrate Software modules are tested as a group Integration testing may be done in another sandbox and is done before functional and acceptance testing 3.)    Stage Full regression testing Load Testing Specific new feature testing User acceptance testing 4.)    Production/Training After changes are accepted, change control board approves deployment in production and/or training Prerequisites […]

Continue Reading →

Exceptions, Debugging and Testing

Exceptions Records information about the error, the type of error and the state of the script or program when the error occurred Exceptions can be handled using the following keywords: Throw Try Catch Finally (optional) Syntax Example: Try { Update positions; } Catch (System.DmlException e)  { System.debug(‘DML Exception: ‘ + e.getDmlMessage(0)); } Finally { Positions.clear(); } Exception Types System-defined Classes ListException DmlException MathException NullPointerException QueryException SecurityException SobjectException StringException TypeException User-defined […]

Continue Reading →

Records in the Database

sObject Relationship Naming Syntax sObjects have different names depending on the relationship type. But either way, they are appended with __r.  For example: Parent-to-child – plural version of the child object – Interviewers__r Child-to-parent – singular version of the parent object – Position__c Relationships are written in dot notation and strung together to eventually reach the field that you need. For example: Review.job_application__r.position__r.status__c = ‘Closed’; There are two ways to […]

Continue Reading →

Object-Oriented Programming in Apex

Classes A class is a template or blueprint from which objects are created. They consist of methods and attributes Are stored with the version of API that is used to compile it May contain other classes, known as inner classes (but these can only be one level deep) Even though Apex code is not case sensitive, it is recommended that you follow the Java naming convention Static methods and attributes […]

Continue Reading →

Introduction to Apex

What is Apex? Apex is an object-oriented, on-demand programming language. It is similar to Java and runs on the Force.com platform. Automatically works with any new Salesforce releases and has a built-in framework for testing and deployment. It is case insensitive. Traditional Code Vs. Apex code Traditional code is fully-flexible and can tell the system to do anything, where Apex is governed and can only do what the system allows […]

Continue Reading →

On Being a Certified Salesforce Developer

sf_cert_dev_rgb

After six very intense weeks of study, I finally cemented my status as a Certified Salesforce Developer on March 9, 2013. As a former Microsoft MCSD, MCDBA and MVP, let me just say that Salesforce sure ain’t giving these things away. The test was VERY tricky and reminded me of the certification tests for Microsoft SQL Server (those were not easy either). The funny part is that if you look […]

Continue Reading →

Follow

Get every new post delivered to your Inbox.

Join 80 other followers