+ Start a Discussion
Rohit TripathiRohit Tripathi 
I am getting error message while solving this challenge in Trailhead :

To complete this challenge, add a validation rule which will block the insertion of a contact if the contact is related to an account and has a mailing postal code (which has the API Name MailingPostalCode) different from the account's shipping postal code (which has the API Name ShippingPostalCode).Name the validation rule 'Contact must be in Account ZIP Code'.
A contact with a MailingPostalCode that has an account and does not match the associated Account ShippingPostalCode should return with a validation error and not be inserted.
The validation rule should ONLY apply to contact records with an associated account. Contact records with no associated parent account can be added with any MailingPostalCode value. (Hint: you can use the ISBLANK function for this check)

Error Message is :  There was an unhandled exception. Please reference ID: HKIZNLVZ. Error: Trailhead::TrailheadTimeOut. Message: Trailhead.view: failed to get a 200 response. Made 3 attempts each resulting in a 403 or 500 failure for url challenges?key=%5B%22trailhead.challenge.validation_rules.en.us.192%22%5D.

I am not sure what went wrong here.
My Validation Rule is on Contact Object  :

  AND ( NOT(ISBLANK( Account.Name)),
( MailingPostalCode <> Account.ShippingPostalCode))

Can anyone please help with this.
Best Answer chosen by Rohit Tripathi
Amit Chaudhary 8Amit Chaudhary 8
Please try below valudation rule
MailingPostalCode != Account.ShippingPostalCode
i Used same and got all points in Trailhead challenge

Rahul Singh Rana 9Rahul Singh Rana 9 

I have complete both requirements of PD 2 certificate, MCQ and Trailhead Badges. I have also linked my Webassessor account with trailhead account. It has been almost one week and I am still waiting for my certificate. I have raised mutiple cases for this but no response. My questions are :

1) Is it common for certificate to arrive late or is it just my case, please let me if anyone of you faced similar situation.
2) Is there any way to reach certificate team apart from guided help on the website.

Also any guess why does it take so long to award this certificate, once you have completed all the requirements. For example in case of proctored exam the certificate is awarded immediately. 

Best Regards,
Best Answer chosen by Rahul Singh Rana 9

I am glad that the PD2 certificate arrived for you. If you intend to learn about CPQ here are the resources you could use.
  1. Salesforce CPQ Basics Trailhead Module (https://trailhead.salesforce.com/en/modules/sf_cpq)
  2. Moreover, the Salesforce Partner Community (http://partners.salesforce.com/)has some amazing resources that you could use.
  3. You can also follow the @SalesforceCPQ twitter handle for updates and use hash tag #askforce or @asksalesforce for any help with issues if you are stuck.
  4. Once you are ready you can then take the Salesforce CPQ Specialist certification (http://certification.salesforce.com/cpqspecialist)to showcase proven CPQ expertise 
All said and done, implementaiton experience on real world projects is a must and no amount of theoretical understanding & practice replaces that. Hence, try to have atleast one lifecycle implementaiton that you have been a part of before taking the certification.

Also, if your issue is now resolve, please close this thread.
Best Answer chosen by sai prakash 14
sai prakash 14sai prakash 14
Thanks khan. that second link is working .

To work on this we need to use two js files. i am providing the two js link files to download and store them as static resource in your org



In the second link u have to add window.xlsx=xlsx then only it will work otherwise it will show error.
where to add that is explained in this link- https://sfdcbro.com/2018/11/18/using-sheetjs-with-lightning-components/

Hi all , 
I am new to salesforce and aim to be a certified developer , can anyone please give me some suggestions and tips on how to prepare for salesforce platform developer 1 exam.
Best Answer chosen by Mayank_Sareen
Shubham NandwanaShubham Nandwana
Hi Mayank,
To prepare for developer 1 exam you can:
1. Follow study guide http://certification.salesforce.com/SG_CertifiedPlatformDeveloperI.pdf, clear your basics and you will be able to clear the exam.
2. Start with trail mixes suggested for developer 1 exam (https://trailhead.salesforce.com/users/00550000006yDdKAAU/trailmixes/prepare-for-your-salesforce-platform-developer-i-credential).
3. Check http://sfdctrail.com/2016/01/15/salesforce-platform-developer-1-certification-tips/ for topic wise distribution and study links for different topics. 
4. You can also find no. of sample questions on google. Like on such link: http://mansoorsfdc.blogspot.com/2016/12/salesforce-certified-platform-developer.html
NOTE: The DEV401 exam has been revised so do not rely solely on some question bank.

Select it as best answer if it helps and reply if any other help is needed.

Shubham Nandwana.
AppPerfect Corp.
Salesforce Development & Operations Experts
Mohammad Shahid ShahMohammad Shahid Shah 
 I''m struck on Step 1 

User-added imageHere's my code ):
Can someone please help me out !

User-added image
Best Answer chosen by Mohammad Shahid Shah
mukesh guptamukesh gupta
Hi Shaid,

Please use below code:-
public class Constants {
    public static final Integer DEFAULT_ROWS = 5;
    public static final String SELECT_ONE = Label.Select_One;
    public static final String INVENTORY_LEVEL_LOW = Label.Inventory_Level_Low;
    public static final List<Schema.PicklistEntry> PRODUCT_FAMILY = Product2.Family.getDescribe().getPicklistValues();
    public static final String DRAFT_ORDER_STATUS = 'draft';
    public static final String ACTIVATED_ORDER_STATUS = 'activated';
    public static final String ERROR_MESSAGE = 'An error has occurred, please take a screenshot with the URL and send it to IT.';
    public static final Id STANDARD_PRICEBOOK_ID = '01s3k000002IjuwAAC';

For the STANDARD_PRICEBOOK_ID, use the below query in Query editor and grab the id.
SELECT Id FROM PriceBook2 WHERE Name = 'Standard Price Book'

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Shayne Hudson 15Shayne Hudson 15 
Just failed my Admin 201 test. I'm so angry and frustrated. I took a ton of practice tests and did well on them. The actual test was nothing like the practice test. The actual test was ridiculously vague.  Anyway, does anyone know where I can find practice tests that are actually up-to-date? Any suggestions on how to study that doesn't cost a billion dollars? I'm just super frustrated and angry right now. Thanks for the help. 
Best Answer chosen by Shayne Hudson 15

First of all, I understand that you feel bad on failing the certification, but at the same time believe and understand that its not the worst and that, it has not only happened to you but hundreds of developers / admins out there. So, don't get frustrated, gather yourself up and will help you with some pointers to help you get certified.

Here's your game plan. 
  1. Understand your areas of strength and weakness: At the end of a certification exam, Salesforce provides a breakup of how you did in the various areas / topics included as a part of the certification exam. Use this evaluation report as a tool to prepare for the exam. Any easire way to do this, is to list down all the topics for exam from the study guide and use a scoring meachanism of 1 to 3 where 1 = Not Aware, 2 = Know it somewhat but requires study, 3 = I know it well. Then focus on the Ones and Twos and then the threes.
  2. Be hands on: Taking a certification does not necessarily always prove your capability to deliver a Salesforce implementation. Don't get this otherwise, neither am I trying to devalue the certifications nor question the ability of certified Salesforce champions with certifications. This is a general observation that I have over the years of my implementaiton experience with Salesforce. Hence, if you have no handson experience with Salesforce, I would recommend having atleast 6 months of handson before you attempt the certification.
  3. Prepare a study plan and study hard: Taking a Salesforce certification can be compared to taking any other school test and where you need to study hard for it and maybe memorize certain specific thigns if required. The handson experience may give you the edge, but YOU WILL NEED TO STUDY !!
  4. Read the Study Guide: Read the Admin Certification Study Guide well to understand the weightage of different topics. This plays an important role in your preparation and focus on topics with higher weightage first to cover the maximum possibele topics.
  5. Moreover, if your organization has a Salesforce Partner Training access, take the following self paced course - Preparing for Your Salesforce Administrator Certification which gives detaila about the what, who, whys and hows about the Admin certification exam.
  6. Take time to read through the amazing blogs by some of the people from the Salesforce community who taken the certification exam like me and have shared their experience
    1. http://www.merivisblog.com/study-salesforce-admin-exam/
    2. http://www.salesforceben.com/certified-admin-mock-exam/
    3. https://jenwlee.wordpress.com/2016/02/29/salesforce-administer-exam-preparation-exam-taking-strategy/
    4. https://www.adminhero.com/beginners-guide-to-salesforce-certification/
  7. Take Practice Exams: Refer to the following mock exam preparation content for the certification. I have personally refererred these durign my certification and found them quite reliable.
    • https://quizlet.com/149448734/salesforce-administrator-exam-flash-cards/
    • http://focusonforce.com/salesforce-adm-201-exam-questions/
    • http://www.certifiedforce.com/sample-questions/administrator-quiz-1
Hope that helps. I can share my certification study notes with you if you need. Just email me at jigar189@gmail.com. I would love to hear from you once you clear your certification. Cheers!!

Please mark this thread as SOLVED and answer as the BEST ANSWER if it helps address your issue.
Shruthi GM 6Shruthi GM 6 
"Your Apex code contains field level access checks that are redundant now that you've added 'WITH SECURITY_ENFORCED'. Please check your code again."

Code is:-

global with sharing class SecureApexRest {
    global static Contact doGet(){
        Id recordId = RestContext.request.params.get('id');
        Contact result;
        if (recordId == null){
            throw new FunctionalException('Id parameter is required');
        if (Schema.SObjectType.Contact.isAccessible()
            && Schema.SObjectType.Contact.fields.Name.isAccessible()
            && Schema.SObjectType.Contact.fields.Secret_Key__c.isAccessible()){
            List<Contact> results = [SELECT id FROM Contact WHERE Id = :recordId WITH SECURITY_ENFORCED];
            if (!results.isEmpty()) {
                result = results[0];
        } else{
            throw new SecurityException('You don\'t have access to all contact fields required to use this API');
        return result;
    public class FunctionalException extends Exception{}
    public class SecurityException extends Exception{}

Kindly suggest me what exactly I need to change in the code.
Thanks inadvance.
Best Answer chosen by Shruthi GM 6
Raj VakatiRaj Vakati
Refer this link 

You dont have to provide access to any fields. If you read the challenge, you just have to edit the query to include the new WITH SECURITY_ENFORCED attribute, and remove other field level security checks. 

You need to put the query in a try/catch statement, and catch the System.Query Exception.

Use this code
global with sharing class SecureApexRest {
    global static Contact doGet(){
        Id recordId = RestContext.request.params.get('id');
        Contact result;
        if (recordId == null){
            throw new FunctionalException('Id parameter is required');
        List<Contact> results;
            results = [SELECT id, Name, Secret_Key__c FROM Contact WHERE Id = :recordId WITH SECURITY_ENFORCED];
        }catch(QueryException e){}
        if (!results.isEmpty()) {
                result = results[0];
        return result;
    public class FunctionalException extends Exception{}
    public class SecurityException extends Exception{}

Pooja UpadhyayaPooja Upadhyaya 
Hello All  ,

I am preparing for Salesforce 201 certification .Please help me in finding appropraite material for the certification .

Pooja Upadhyaya
Best Answer chosen by Pooja Upadhyaya
Amit Chaudhary 8Amit Chaudhary 8
Hi Pooja,

Please check all below link. I hope that will help you
I found these exams very helpful when I was studying for my ADM 201 exam. These are not officlally provided by Salesforce, but I found the questions to be similar in style to the actual exam.


Please let us know if above link will help u


I want dump question in Salesforce Administration Certification.

Best Answer chosen by Admin (Salesforce Developers) 
Ankit AroraAnkit Arora
Hi everyone,

I am completed the Multiple choice questions for Platform Developer 2 as well as the  super badges, can someone help me to understand how do I get the certificate.
Best Answer chosen by Manj_SFDC
Amit Chaudhary 8Amit Chaudhary 8
Please check below post. That will help you
1) http://certification.salesforce.com/platformdeveloperII
2) http://certification.force.com/pkb/articles/Public_KB/Changes-to-Platform-Developer-II

Congrats - you’re on the path to earning PDII! What happens next? In order to grant you the PDII credential, we’ll need to link your Webassessor and Trailhead accounts. Here’s the process:

Step 1 - Link Your Accounts: Once you complete the requirements in Trailhead, we will send you an email with instructions on how to link your accounts. Click here  (http://certification.force.com/pkb/articles/Public_KB/Link-Your-Trailhead-and-Webassessor-Accounts)for more details about this process.

Step 2 - We Grant You the Credential: Once you’ve successfully linked your accounts, and you’ve completed all requirements for PDII, we will grant you the credential within 1 week. You will receive an email notification with your certificate and logo which you can then proudly display!
Note: Your credential certified date will reflect the date your credential was issued in Webassessor.