• Harshal Patil 15
  • NEWBIE
  • 20 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 8
    Replies
trigger eventTrigger on event (after insert,after delete,after undelete){

set<id> setid = new set<id>();
List<lead> leadlist = new List<lead>();

if(trigger.isInsert  ||  trigger.isUndelete){
for(event e : trigger.new){
if(string.valueof(e.whoid).startswith('00Q')){
setid.add(e.whoid);
}

}

}


if(trigger.isDelete){
for(event e : trigger.old){
if(string.valueof(e.whoid).startswith('00Q')){
setid.add(e.whoid);

}

}

}

for(lead l : [select id,No_of_Events__c,(select id from events) from lead where id in : setid]){
lead ll = new lead();
ll.id=l.id;
ll.no_of_events__c = l.events.size();
leadlist.add(ll);
}
update leadlist;
}
hello i just want to know what is the step to solve challenge 1
Hi All Champs,

Does anyone has any idea, why am I getting this error. " Challenge Not yet complete... here's what's wrong: 
The 'Accounts Without SolarBot Opportunities' report doesn't include the correct collection of accounts
"
I have created a report with Account standard report type. How can we fulfill this requirement for challenge#2.
User-added image

Thanks 
Guns
While working on Secure Identity and Access Management trailhead i have used authenticator.
Now that i have lost my mobile phone which has salesforce authenticator, now i am not able to login to my org.
Everytime i am trying to log in, its restricting me.
i tried to contact saleforce using help option in mydeveloper org, but the help desk is not fuctioning as per the requirement.