• Trail head 40
  • NEWBIE
  • 20 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 9
    Replies
Hi,

When event is created along with document attachment send "outlook calender invite" as an attachment to the user who is creating the event.
Thanks,
Hello everybody,

I'm stuck in the LEX SuperBadge, Challenge #2 : https://trailhead.salesforce.com/en/super_badges/superbadge_lex

I keep getting this Error :
User-added image

I've been trying for an hour to find out the cause, redone the entire Approval Process, got back to the corresponding TrailHead Module with which I had no trouble, but still nothing...

Here is my Approval Process:
User-added image

I am not sure about the "assigns approvals back to the opportunity owner" part, I had no other choice than "Manager" in the "Step3 : Specify Approver Field", for "Next Automated Approver Determined By" .

If anyone has a clue where to start looking for, any help would be greatly appreciated!

Thanks & Regards,
I am trying to complete lightning experience specialist superbadge. I am struck at Item 2 in creating approval process with the given conditions.can anyone please help?
Hi,

When event is created along with document attachment send "outlook calender invite" as an attachment to the user who is creating the event.
Thanks,
I am get this error: "Challenge Not yet complete... here's what's wrong: 
The 'Opp Stage by Adventure' report does not appear to be configured correctly. Make sure it has the correct report type, groupings, filters and chart type".

I believe i configured the report according to the instructions but it is still showing and error. Any assistance or insight would be apreciated. 
I have this very simple class..  
trigger RestrictContactByName on Contact (before insert, before update) {
    //check contacts prior to insert or update for invalid data
    For (Contact c : Trigger.New) {
        if(c.LastName == 'INVALIDNAME') {   //invalidname is invalid
            c.AddError('The Last Name "'+c.LastName+'" is not allowed for DML');
        }
    }
}
.. and the corresponding Test Class:  
@isTest
private class TestRestrictContactByName {

	@isTest static void metodoTest() {
		
		List listaContatti = new List();
		Contact c1 = new Contact(FirstName='Francesco', LastName='Riggio');
		Contact c2 = new Contact(LastName = 'INVALIDNAME');
		listaContatti.add(c1);
		listaContatti.add(c2);
		
		//insert listaContatti;
		
		// Perform test
        Test.startTest();
        Database.SaveResult [] result = Database.insert(listaContatti, false);
        Test.stopTest(); 
		
		c1.LastName = 'INVALIDNAME';
		update c1;
       		
	}
	
}

When I run the Test class from the Developer Console I get 100% of coverage on the RestrictContactByName class but, when I check the challenge on the trailhead it returns the error:

Challenge not yet complete... here's what's wrong: The 'RestrictContactByName' class did not achieve 100% code coverage via your test methods

Has someone had my same issue?
hi
i am new to salesforce platform.
Install a simple Apex class, write unit tests that achieve 100% code coverage for the class, and run your Apex tests.The Apex class to test is called 'VerifyDate', and the code is available here. Copy and paste this class into your Developer Edition via the Developer Console.
'VerifyDate' is a class which tests if a date is within a proper range, and if not will return a date that occurs at the end of the month within the range.
The unit tests must be in a separate test class called 'TestVerifyDate'.
The unit tests must cover scenarios for all lines of code included in the Apex class, resulting in 100% code coverage.
Run your test class at least once (via the Developer Console) before attempting to verify this challenge.

In the above challege i am not able to write a 'TestVerifyDate' class. I dont unsertstand how to write it for a date.
plz help..
Here is my example. I create a training record and send an email out to users to register, they login and register for the class, but they would like to have this event saved on their calendar. I want them to be able to click a button and it would open up a calendar appointment and they would be able to save the event on their Outlook calendar.