Quiz #1

Published in Quizzes

1. You have a custom field with the type Number (18, 0). How many digits you can enter in the Lightning Experience?

  1. 16
  2. 17
  3. 18
  4. 255

Reveal answer

Close

The Answer is A.

The numbers in Lightning Experience uses JavaScript's Number type to determine the max and min number of digits, which means that they are limited to the MAX_SAFE_INTEGER and MIN_SAFE_INTEGER precision (which is about 16 digits).


2. Is it correct that Quick Create ensure required fields and validation rules?

  1. Yes, it ensure required fields and validation rules
  2. Partially, it ensure required fields, but not validation rules
  3. Partially, it ensure validation rules, but not required fields
  4. No, bypass required fields and validation rules

Reveal answer

Close

The Answer is D. 

Validation rules don't apply when you create new records with the Quick Create (Create Records with Quick Create).
If you want to deactivate it, then you need to visit Setup > Customize > User Interface and uncheck the box for "Show Quick Create."


3. What standard objects do not support apex triggers?

  1. Campaign Member
  2. Opportunity Contact Role
  3. Account Contact Relation
  4. All subjects support apex triggers

Reveal answer

Close

The Answer is B.

Opportunity Contact Roles does not support apex triggers. There is an idea for this - Make Opportunity Contact Role a First Class Object
You can use the code below to determine the list of objects that do not support apex triggers:

for (Schema.SObjectType soType : Schema.getGlobalDescribe().values()) {
  final String soTypeJSON = JSON.serialize(soType.getDescribe());
  Map<String, Object> m = (Map<String, Object>) JSON.deserializeUntyped(soTypeJSON);
  if (false == m.get('triggerable')) {
    System.debug(LoggingLevel.Error, String.format('{0}({1})', new String[] { 
        '' + m.get('label'), 
        '' + m.get('name') 
    }));
  }
}

Comments powered by CComment