How to retrieve the Record Type which are accessible by user's Profile only?

Sample Code:

         List < SelectOption > listRecTypes = new List < SelectOption >();
        for ( RecordTypeInfo info: Opportunity.SObjectType.getDescribe().getRecordTypeInfos() ) {
            if(info.isAvailable()) {
                listRecTypes.add(new SelectOption(info.getRecordTypeId(), info.getName()));
            }
        }

The above code will add only the record type accessible to the user.

Cheers!!!

How to merge all your badges from different account to one account in Salesforce Trailhead?

To merge all your badges from different account to one account in Salesforce Trailhead, check the below link

https://force.desk.com/customer/portal/articles/2418878-merging-trailhead-accounts?b_id=13478

Note:
Make sure you have the usernames of the accounts which are to be merged.

Cheers!!!

How to query all Validation Rules with object names in Salesforce?

Sample SOQL:

SELECT ValidationName, Active, EntityDefinition.DeveloperName FROM ValidationRule

For more fields, check the below link

https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_validationrule.htm

Cheers!!!

History Tracking for Users records in Salesforce

User History related list is not available in Salesforce as of now.

You can use Feed Tracking temporarily - http://www.infallibletechie.com/2013/10/feed-tracking-in-salesforce.html.

If users Role, Profile, Active checkbox, and email are changed, you can track the changes from Audit History - http://www.infallibletechie.com/2012/04/setup-audit-trail.html.

Keep watching the below Salesforce Idea

https://success.salesforce.com/ideaView?id=08730000000BqrvAAC

Cheers!!!

How to remove Unresolved emails from My Tasks in Home page in Salesforce?

1. Go to Email to Salesforce.


2. Disable Email to Salesforce.


Cheers!!!

Difference between CRUD, FLS and Sharing in Salesforce

CRUD limits which tabs (or objects) a user can access.

FLS limits which columns (or fields on an object) a user can access.

Sharing limits which rows (or object records) a user can access.

Default Sharing Settings


Check the below link for more info

https://trailhead.salesforce.com/en/modules/data_security

Cheers!!!

How to find Duplicates in Salesforce Lightning Experience


Cheers!!!

The authentication provider didn't provide a refresh token. If the access token expires, your org won't be able to access this named credential.

If you face the below issue in Named Credential, make sure Default Scope is set in Auth. Provider.

"The authentication provider didn't provide a refresh token. If the access token expires, your org won't be able to access this named credential."


Cheers!!!

My journey to Salesforce Certified Platform Developer II certification exam

The Salesforce Certified Platform Developer II program is designed for individuals who would like to demonstrate their skills and knowledge in advanced programmatic capabilities of the Force.com platform and data modeling to develop complex business logic and interfaces. The candidate can design, develop, test, and deploy programmatic solutions that are maintainable and re-usable and follow design patterns and object-oriented programming best practices.

It has the below three levels to get certified from Salesforce.

Level 1 - Multi Choice Questions (60 questions)

This exam is prerequisite for the Programming Assignment and Essay exams. Passing Score is 63% i.e. you must answer at least 40 questions correctly out of 60 questions. Time allotted to complete the exam is 120 minutes.

Tips for the level1 exam.

1. Apex Development
2. Visual Force Development
3. Test Class best practices
4. Apex Trigger best practices
5. SOQL and SOSL
6. Order of execution in both VF and Apex
7. Governor Limits
8. Exception Handling
9. Do the Mock Test given on Bulkified.com - http://bulkified.com/Certifications/?certificationId=4

Level 2 - Programming Assignment

Register for this exam only when you are ready. Do not register if you are going to be busy during the exam schedule. We get 30 days to complete the assignment. Spend at least 4 hours each day.

Check the Programming Assignment schedule date here - http://certification.salesforce.com/programmingassignment.

The Salesforce Certification Programming Assignment asks each candidate to develop a working application using the capabilities of the Force.com platform. Each application should meet the identified business and technical requirements outlined in this document.

The final application should be developed in a Force.com sandbox and deployed to the production organization provided. Candidates should consider this application to be a working prototype, rather than a market-ready application. To minimize development time, the requirements are intentionally limited in scope.

Below are the important things to be considered while developing the application.

1. Make sure the code uses DML and SOQL efficiently.
2. The solution should consider data access and visibility.
3. Code should catch all possible errors/exceptions in the controller.
4. Code readability should be excellent.
5. Visualforce page should display user-friendly error messages.
6. The test class should assert application behavior in all cases.
7. Make sure governor limits are considered.
8. Try 100% code coverage.
9. Test class should consider large data volumes.
10. Use proper comments in the code.
11. Use proper indentation in the code.
12. Do all the development in the Sandbox.
13. Load multiple dummy records with proper values in both Sandbox and Production. Use data loader to load bulk data.
14. Bulkify the trigger.
15. User Test Utility class for test data.
16. Use trigger handlers for triggers.
17. Use proper naming for variables, triggers, pages and other components.

Note:
Start the application development on the Day 1 of the assignment receival. Do not wait for the last week. Trust me, this is not an easy exam.

Level 3 - Essay Exam

Essay exam is purely based on the assignment work. Do not miss the due date for Essay Exam. Essay exam should be completed within the 30 days of programming assignment. So, schedule it accordingly. Do not wait for the last week to schedule the exam. You may not get the pro-metric center appointment if you schedule it at the last moment.

In the essay exam, talk about the below things.

1. How have you designed the application?
2. What are all the best practices applied? Best practices for development, data load, and test classes.
3. Deployment plan.
4. Testing plan.

The wait for results can vary, but typically you can expect to wait around 4-8 weeks to find out. Salesforce gives us a report with our strengths and areas for improvement with detailed explanation.

Links for references:

https://www.salesforce.com/campaigns/success-services/advanced-force-developer-certification.jsp

https://developer.salesforce.com/page/Certification

https://developer.salesforce.com/page/The_Path_to_Advanced_Developer_Certification 

Cheers!!!

Rate Rules in Salesforce Community

Create and modify rate rules to monitor and limit how frequently member-generated content is created in your community. Rate rules protect your community against spammers and bots that attack your community by posting the same message multiple times in a row. You can create rate rules to notify your moderators of suspicious spammer-like behavior or freeze a member on the spot.

1. Select Moderation.


2. Click Rules tab.


Cheers!!!

Language Picker in Salesforce Community


Cheers!!!

How to Enable setup and display of reputation levels

1. Go to Community Management.

2. Enable "Enable setup and display of reputation levels" under Preference.


Cheers!!!

Service Cloud: Snap-ins - Salesforce

With Snap-ins, agents can use contextual customer details from app data to quickly point them to the right solutions.

Add the Snap-in Chat widget to your website so that customers can quickly get answers to their questions by chatting with an agent while browsing your site. Snap-In Chat uses Live Agent, but with a simpler setup. The setup node for snap-ins chat is available only in Lightning Experience.

To set up snap-ins chat, your org must meet these prerequisites:

  1. Lightning Experience must be enabled to set up snap-ins
  2. Service Cloud License
  3. Live Agent License
  4. Live Agent must be enabled in your org
  5. A Live Agent chat button and a Live Agent deployment must be set up and available in your org
  6. A Salesforce Community (preferable) or a Force.com site must be set up on your org and available for guest user access

Cheers!!!