Thursday, 23 March 2017

Salesforce Essentials - 20(Trigger for field update in Salesforce)

The below Apex code is used to update a field(Additional_Action__c) on Account  Object,

where Active__c  = yes then Additional_Action__c  = All dues paid 

else  Additional_Action__c  = Ask client to pay remaining dues.

1 - When Active __c = Yes (Screenshot 1)
2 - When Active __c = No (Screenshot 2 )

(Screenshot 1)

(Screenshot 2)

Tuesday, 14 March 2017

Salesforce Essentials - 19(Like operator in SOQL)

Like operator in SOQL

 Like keyword is same as like in SQL. We can find/get the record utilizing this keyword. Expression is true if the value in the designated fieldname matches characters of text string in the designated value.
The LIKE operator in SOQL and SOSL is homogeneous to the LIKE operator in SQL; it provides a mechanism for matching partial text strings and includes support for wildcards.
* % and _ wildcards are fortified for LIKE operator.
    * % wildcard matches zero or more characters.
    * _ wildcard matches precisely one character.
    * Text string in the designated value must be enclosed in single quotes.
    * LIKE operator is fortified for string fields only.
    * LIKE operator performs a case-callous match, unlike the case-sensitive matching in SQL.
    * LIKE operator in SOQL and SOSL fortifies eluding of special characters % or _.
    * Do not utilize the backslash character in a search except to elude a character.

For example 

List listOfAccounts;
listOfAccounts = [SELECT id, Name
                           FROM Account
                           WHERE Name  LIKE '%test%'];
This query matches both testasish,accounttest, and test.

 SELECT AccountId, FirstName, lastname FROM Contact WHERE lastname LIKE 'AC_%'

Select id, email from contact where email like '%a' or email like '%x';

References -

Saturday, 11 March 2017

Salesforce Essentials - 18(Inline editing)

What is Inline editing?

Inline Editing is a new technology introduced in CKEditor 4 that allows you to select any editable element on the page and edit it in-place. As a result, the editor can be used to edit content that looks just like the final page.

Enabling Inline editing

Visualforce pages 21.0 and above support inline editing. Inline editing lets users quickly edit field values, right on a record’s detail page. 
The component has an attribute that activates inline editing, while the component provides inline editing functionality to several container components.
To see the power of inline editing, create a page called inlineDetail with the following code:
Sample code:


Wednesday, 8 March 2017

Salesforce 18th Birthday

Happy Birthday Salesforce !

Salesforce have turned 18th today , Isn't it exciting the company you work and it grows with you .

The company was founded in 1999 by former Oracle executive Marc Benioff, Parker Harris, as a company specializing in software as a service (SaaS).[8]
I still remember , the first time I heard the name 'Salesforce '

I started my salesforce journey in 2013 after my 12th Class examinations , And from solving Fundamentals to grabbing a job as a Salesforce Developer  and Being the DG Leader in Chandigarh Tricity Area . Salesforce just changed my life as well as the thinking of mine .

I am still pursuing my graduation and I literally don't think any other technology gives you a life-changing chance as Salesforce did.

I would like to thank and wish “Happy Birthday” to all Salesforce Employees, Customers, Partners, Non-Profit Organizations etc.

Party Hard ! Salesforce 

Wednesday, 1 March 2017

Winter 2017 Class of Salesforce MVPs

MVPs are nominated by the community and awarded predicated on their contributions for the antecedent year. They are answering countless questions on Answers and Twitter, submitting and voting on conceptions in the IdeaExchange, inditing and sharing subsidiary blogs, leading Utilizer Groups and Developer Groups, posting on the Developer Forums and Prosperity Community, and so much more. We get hundreds of community nominations each year, and while there isn't a concrete list of items that guarantee someone will be awarded, we look to award community members who demonstrate deep product cognizance, vigorous leadership, responsiveness, and advocacy. It is no facile feat to receive this apperception, and today we proudly award an incipient class of MVPs to agnize them for everything they have done to enrich the Salesforce Community Ohana.

Go and check out the names of our Winter 2017* MVPs