• Monika Sharma 1828
  • NEWBIE
  • 403 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 28
    Replies
"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:-

@RestResource(urlMapping='/secureApexRest')
global with sharing class SecureApexRest {
    @HttpGet
    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.
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.
Thanks
 I want Salesforce Certified Platform Developer I - Spring '18 Release Exam Maintenance  Q and Answers..
please help me on this...Thanks in Advance.


Thanks
Gopal M.
Hello,

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,
Rahul
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. 
Hi All,

I am having small confusion.Is dev-401 exam known as Platform dev-1 or is it different.

Thanks,
Deepak.

I am new to Salesforce. I wan to self-learn and write Salesfroce Admin 201 certification in next month. Plz suggest me relavant links for reading, watcvhing videos etc. If you have any selfmade materials plz send it to my emailid chandra.skumar@outlook.com
Any advice based on your experience would be appreciated :) 

Thanks.

Hello all,

Thanks for looking at my question. I am new to SF and am trying to get certified in ADM 201 and DEV 401.

This question goes out to all certified developers and admins with the above completed, recently would be great.

Was looking at the following link:
http://forcecertified.com/2009/08/14/recorded-sessions-of-dev-401-dev-501-salesforce-training-available-online-for-free/
and am very disapponted. Questions seem to be so specific that nothing my trainer taught me applies.

Want to know the following:
1. Is that exam realistic?
2. What is the best guide to study for the exam ... any suggestion/s are appreciated.
3. Length of time I can expect it will take to complete the same.

I looked at the questions posted previously by other users. Most of links in those replies are not active any more.
Thus I am choosing to post this again.

Thanks for your help,
Murali.