• Monika Sharma 1820
  • NEWBIE
  • 220 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 12
    Replies
I've completed superbedges on trailhead.
Want to appear for MCQ exam.
If you have any relevant study material / sample questions/ Dumps please let me know.

Thaks in Advance!
I am asking for help, please avoid business / Trading of dumps here.
"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.
Hi All

I am planning to appear for Salesforce Certified Platform Developer I. Not really getting any sample questions or mock questions online.

Appreciate if anybody has any pointers to that!

Thanks In Advance
Priya