• suman kumar 59
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 4
    Replies

Ensure that you have at least 12 products created and that OrderExtension is still working as specified in the earlier challenge.
Although I have created the field (Shift_Start_Time__c)  its formula field pointng to Volunteer_Shift__r.Shift_Start_Time__c on this Object (Volunteer_Shift_Worker__c)
Although I have created the field (Shift_Start_Time__c)  its formula field pointng to Volunteer_Shift__r.Shift_Start_Time__c on this Object (Volunteer_Shift_Worker__c)
Getting the below error message on the "Advanced Apex Specialist" on the last step. Had made sure all test classes are covered and OrderExtension works as expected and there are more than 12 products created. I tried to delete the existing data on the system and recreated it, Very likely that causes the below error message. Have anyone got the similar error message? Would appreciate any suggestions to solve it.

Challenge Not yet complete... here's what's wrong: 
Ensure that you have at least 12 products created and that OrderExtension is still working as specified in the earlier challenge.
 
Hi ,

I have pick list values like 1,2,3,4,.....20 . There are 5 useres. user1 can see 2,3,4,5 values and U2 can see 1,5,6, values. Like that other users can see different pick list values. How can I achive this. 

Thanks
Hi Everyone,

I have an apex class that merges two person accounts in this piece of code (knowing all the accounts in the org are person accounts, so I am sure the result of the queries isn't a business account):
Account masterAcct= [SELECT Id, personEmail, Name FROM Account WHERE PersonEmail= :leadToConvertEmail LIMIT 1];
Account newAcct = [SELECT Id, PersonEmail, Name FROM Account WHERE Id= :acctIdToCheck LIMIT 1];

merge masterAcct newAcct;

But I get this error: 
INVALID_FIELD_FOR_INSERT_UPDATE, Account: bad field names on insert/update call: Name: [Name]

If I change my code and delete Name (wether I add FirstName and LastName in the query or not):
Account masterAcct= [SELECT Id, personEmail FROM Account WHERE PersonEmail IN :leadsEmailList LIMIT 1];
Account newAcct = [SELECT Id, PersonEmail FROM Account WHERE Id= :acctIdToCheck LIMIT 1]; 

//Same result with: Account masterAcct= [SELECT Id, personEmail, salutation, firstName, lastName FROM Account WHERE PersonEmail IN :leadsEmailList LIMIT 1];
//And: Account newAcct = [SELECT Id, PersonEmail, salutation, firstName, lastName FROM Account WHERE Id= :acctIdToCheck LIMIT 1];

merge masterAcct newAcct;
I get the following error:
System.SObjectException: SObject row was retrieved via SOQL without querying the requested field: Account.Name

Therefore, is there a way to use merge with two person accounts?

Thanks or your help!

Constance