• Rohini Sirigiri 5
  • NEWBIE
  • 10 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 5
    Replies
How to write trigger on VisualAccessMetrics? I am not able to view VisualAccessMetrics standardobject in the salesforce edition.
I am new to Salesforce Ecosystem.Can anybody help me solving this :

Contact has a multi select custom field called Role__c which can have values (Surgeon;Nurse;First Assist;Admin;CSR).
Account has a custom field called Total_Score__c which is a number field.
 
Mapping table Role_Score__c looks like this
Role__c         Score__c
Surgeon         10
Nurse           5
First Assist    10
Admin           0
CSR             20
 
When a contact is created/updated, get total score of all the UNIQUE roles that exist on all the contacts of the account.
 
Ex: Account 1
Contact 1 with roles Surgeon;Admin
Contact 2 with roles CSR:Admin
On Account 1 we should store the value as (10 + 0 + 20 = 30) because we only have 3 unique roles

I need with proper explanation :  
Did anyone of you write PD1 WI20 certification in this Feb month? 
I need the correct answers for these questions. Please help !!

1. 100 accounts & 200 contacts are inserted in an apex transaction. Account is inserted using Database.insert with BooleanAllOrNone flag as False. While inserting 2000 contacts and opportunities using Insert method, and an exception occurs. How many records will be inserted?
a) 100
b) 2000
c) 2100
d) 0
e) None of the above

2. Lightning components can be used in which of the following places:
a) Lightning record page
b) Lightning Home Page
c) Lighting Connect
d) Lightning Community page

I dont other one more option for this question.

3.Which one represents controller in MVC
a) Retriving records from apex controller using SOQL
b) Using Javascript from handler class to retrieve from Apex class
 
I dont have other two options currently for this question.
Did anyone have written Platform Developer I in the recent times like last week or 2 weeks ago? If so I wanted to ask whether you have faced questions related to lightning(aura) and Lightning Web Components(LWC)? I heard from Feb, the PD1 question pattern is going to change and will focus more on lightning and LWC. Please guys respond.  
Im getting the Error : System.ListException: List index out of bounds: 0
Candidate__c(Master object) and Job_Application__c(child object). 
I want to fetch child records.

List<Candidate__c> candList=[Select id,name,City__c, (select Position__c,Status__c from Job_Applications__r) from Candidate__c Where Name='Shaun smith'];
System.debug('List is' +candList);
List<Job_Application__c> jobList=candList[0].Job_Applications__r;
System.debug('List of job are' +jobList);

Please help with this.

 
How to write trigger on VisualAccessMetrics? I am not able to view VisualAccessMetrics standardobject in the salesforce edition.
I am new to Salesforce Ecosystem.Can anybody help me solving this :

Contact has a multi select custom field called Role__c which can have values (Surgeon;Nurse;First Assist;Admin;CSR).
Account has a custom field called Total_Score__c which is a number field.
 
Mapping table Role_Score__c looks like this
Role__c         Score__c
Surgeon         10
Nurse           5
First Assist    10
Admin           0
CSR             20
 
When a contact is created/updated, get total score of all the UNIQUE roles that exist on all the contacts of the account.
 
Ex: Account 1
Contact 1 with roles Surgeon;Admin
Contact 2 with roles CSR:Admin
On Account 1 we should store the value as (10 + 0 + 20 = 30) because we only have 3 unique roles

I need with proper explanation :  
I need the correct answers for these questions. Please help !!

1. 100 accounts & 200 contacts are inserted in an apex transaction. Account is inserted using Database.insert with BooleanAllOrNone flag as False. While inserting 2000 contacts and opportunities using Insert method, and an exception occurs. How many records will be inserted?
a) 100
b) 2000
c) 2100
d) 0
e) None of the above

2. Lightning components can be used in which of the following places:
a) Lightning record page
b) Lightning Home Page
c) Lighting Connect
d) Lightning Community page

I dont other one more option for this question.

3.Which one represents controller in MVC
a) Retriving records from apex controller using SOQL
b) Using Javascript from handler class to retrieve from Apex class
 
I dont have other two options currently for this question.
Im getting the Error : System.ListException: List index out of bounds: 0
Candidate__c(Master object) and Job_Application__c(child object). 
I want to fetch child records.

List<Candidate__c> candList=[Select id,name,City__c, (select Position__c,Status__c from Job_Applications__r) from Candidate__c Where Name='Shaun smith'];
System.debug('List is' +candList);
List<Job_Application__c> jobList=candList[0].Job_Applications__r;
System.debug('List of job are' +jobList);

Please help with this.