Order of Execution of Visualforce Page in Salesforce

In so many interviews this question will be asked. Generally people will read order of execution of record saving, but they will miss this. You shouldn’t be one of them. So read below. Mainly Visualforce Page Execution in two scenarios. Order of Execution for Visualforce Page Get Requests Order of Execution for Visualforce Page Post back Requests However HTTP is a stateless protocol, In Visualforce, page state is persisted as a hidden form field that is automatically inserted into a form when the page gets generated. We call this the…

Read More

How to get the passwords hidden behind Asterisks ****

Most of the browsers hides the saved passwords and shows asterisks. It’s a good security measure. But some times, we may forget the saved password,as it may long time or too complex. Then we need to view it. For use below tricks to do get the passwords hidden behind Asterisks. First one:- Open the inspect element at password box. You will find code regarding it. Check for the type attribute. Change type attribute from "password: to "text" and enter. Now, in browser you will see the password. Second method: Note:…

Read More

System.now function is not working as appropriate – Salesforce Apex Issue

I am using system.now() in a controller in my application. Later I have so many calculations with it. But Date time calculations are not as per timezone of my client. Why? Solution: Yes. It will happens because, System.now() returns the DateTime in GMT time zone, whereas System.now().hour() and System.now().format() are the methods of DateTime class, which return the local time zone of current logged in user. But, one thing we have to find is that System.now() will return DateTime and all other methods of DateTime will be string. It means,…

Read More

Salesforce Certified Platform Developer I Exam Questions With Answers

1. Why would a developer use system.startTest and System.stopTest methods? A. To avoid Apex code coverage requirements for code between these lines. B. To start and stop anonymous block execution when executing anonymous apex code. C. To indicate test code so that it does not impact Apex line count governor limits. D. To create an additional set of governor limits during the execution of a single test class. 2. What must the controller for a Visualforce page utilize to override the standard Opportunity view button? A. The StandardSetController to support…

Read More

How to view all messages at one location

Generally we receive normal SMS to our phone inbox. But it is better same will be delivered to Facebook messenger while we are in chatting with friends in Facebook. We have a wonderful solution for it. We have to do only one thing for it. Just open messenger and click on profile which is on right side top. Open "Default SMS app” and enable it. That’s it. From now on wards, all messenger will be delivered to messenger. Happy Chatting..!!

Read More