+ Start a Discussion
Michael RuckerMichael Rucker 
I've just noticed that my public site 
https://trailhead-leaderboard-developer-edition.na35.force.com/
is no longer accessible publically.

It now prompts users for a login. I have not done a single thing to this site snce 10/23/2018. It's been working fine all along.
Looks like the last time anyone accessed it was 11/17/2018.
Leaderboard Activity

Are there any issues going on with Public VF page sites ? Anything related to GDPR or all the cookie popups?

I've checked and rechecked security and everything looks fine. 

Any thoughts ?
 
Koti P 6Koti P 6 
Hi Friends,

Iam geeting the 'Challenge Not yet complete... here's what's wrong: 
Could not find an Opportunity Stage named 'Awaiting Approval' ERROR message when i do the Check Challenge. I created a SalesProcess 'RB Robotics Sales Process' which is not having the 'Awaiting Approval' stage in the list.  Please see the attached screen shot for the same and help me how can i bring the 'Awaiting Approval' Stage in RB Robotics Sales Process'

Regards,User-added imageUser-added image
Koti
Praveen Gupta 57Praveen Gupta 57 
Challenge Not yet complete... here's what's wrong: 
The Robot Setup Day of the Week formula does not seem to be working properly. The Day of the Week should not fall on Saturday or Sunday.


Please help me
Praveen Gupta 57Praveen Gupta 57 
Hi All,
I am getting an error-

An Opportunity with the Stage 'Negotiation/Review' and the Amount greater than $100,000 was not rejected successfully by your manager or the Opportunity Stage was not updated to 'Negotiation/Review'.Every thing is work properly.But still I am gettion this error.

I tested it and it working completely fine. Don;t know why it keep throwing this error. Kindly help.
George SikharulidzeGeorge Sikharulidze 
Hello, I am attemping to check a challenge on trailhead for the Business Administration Superbadge, I am unable to proceed due to error VJSIZHVK , I have tried everything I can think of.
Mark Z DeanMark Z Dean 
I am doing step 3 of the Data Integration Specialist superbadge and stuck at a place...I have spent the last 5 hours on this and can't figure out what to do. The code does not update my opportunity to "Project Submitted". I suspect because the value of gen is empty in the inner Queueable class but I don't know how else to do this. Any help is greatly appreciated. 
 
public class ProjectCalloutService {
    //Complete the implementation for business and callout logic

    @InvocableMethod(label='Pass Oppty Id' description='Pass opportunity id to call the RESTful service')
	public static void postOpportunityToPMS(List<Id> l){
        
		List<opportunity> OpptyToProcess = [select id, name, account.name, closeDate, amount
		from opportunity
		where id = :l.get(0)];

 		JSONGenerator gen=JSON.createGenerator(true);
		//It is used for making starting object(‘{‘)
		gen.writeStartObject();
		//Here it is used for making name ,value pair
		gen.writeStringField('opportunityid', OpptyToProcess.get(0).id);
		gen.writeStringField('opportunityName', OpptyToProcess.get(0).name);
		gen.writeStringField('accountName', OpptyToProcess.get(0).account.name);
		gen.writeStringField('closeDate', String.valueof(OpptyToProcess.get(0).Closedate));
		gen.writeNumberField('amount', OpptyToProcess.get(0).Amount);
		//It is used for making end of object(‘}’)
		gen.writeEndObject();

		System.debug('getAsString:'+ gen.getAsString());
    }

    public class QueueablePMSCall implements System.Queueable, Database.AllowsCallouts{ 

    	JSONGenerator gen;
    	Id OpptyID; 

    	 public QueueablePMSCall(JSONGenerator gen, Id OpptyID)
	    {
         this.gen = gen;
         this.OpptyID = OpptyID;
    	    }

    	String s = String.Valueof(gen);
    	public void execute(QueueableContext context) {
        // awesome code here
           Http http = new Http();
        HttpRequest request = new HttpRequest();
        request.setEndpoint('callout:ProjectService');
        request.setMethod('POST');
        request.setHeader('Content-Type', 'application/json;charset=UTF-8');
        request.setBody(s);
        HttpResponse response = http.send(request);
        // Parse the JSON response
        if (response.getStatusCode() != 201) {
            System.debug('The status code returned was not expected: ' +
                response.getStatusCode() + ' ' + response.getStatus());

            List<opportunity> ListOppty = [select id, stageName 
            								from opportunity
            								where id = :OpptyID ];
            Opportunity o = ListOppty.get(0);
            o.stageName = 'Submitted Project';								
        	update o;					} 
        else {
            System.debug(response.getBody());
	        }
    	}
	 }
}

 
nitin maniknitin manik 
trigger ExampleTrigger on Contact (after insert, after delete) {
    if (Trigger.isInsert) {
        Integer recordCount = Trigger.New.size();
        // Call a utility method from another class
        EmailManager.sendMail('Your email address', 'Trailhead Trigger Tutorial', 
                    recordCount + ' contact(s) were inserted.');
    }
    else if (Trigger.isDelete) {
        // Process after delete
    }
}



i m getting error while executing this code

code for emailmanager class
public class EmailManager {
    // Public method
    public static void sendMail(String address, String subject, String body) {
        // Create an email message object
        Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
        String[] toAddresses = new String[] {address};
        mail.setToAddresses(toAddresses);
        mail.setSubject(subject);
        mail.setPlainTextBody(body);
        // Pass this email message to the built-in sendEmail method 
        // of the Messaging class
        Messaging.SendEmailResult[] results = Messaging.sendEmail(
                                 new Messaging.SingleEmailMessage[] { mail });
        
        // Call a helper method to inspect the returned results
        inspectResults(results);
    }
    
    // Helper method
    private static Boolean inspectResults(Messaging.SendEmailResult[] results) {
        Boolean sendResult = true;
        
        // sendEmail returns an array of result objects.
        // Iterate through the list to inspect results. 
        // In this class, the methods send only one email, 
        // so we should have only one result.
        for (Messaging.SendEmailResult res : results) {
            if (res.isSuccess()) {
                System.debug('Email sent successfully');
            }
            else {
                sendResult = false;
                System.debug('The following errors occurred: ' + res.getErrors());                 
            }
        }
        
        return sendResult;
    }
}
Tinashe M ShokoTinashe M Shoko 
I created a new dev org but I did not get the verification/confirmation email. Now I cannot use the email for another username. How do I move forward.
Jessica besser 8Jessica besser 8 
Hi there, I am trying to complete step 2 of the security specialist superbadge and I have installed the Trailhead Security Superbadge managed package. However, when I search for 'Apex Test Execution' in order to select the 'BeAwesome' test with the 'sb_security', no test shows up. I've attached a few screenshots showing this behavior and showing that I have installed the package. Can anyone advise as to why this may be happening? Thanks so much! ( I had initially posted this as an answer on a related thread but was advised to post as a new question)

User-added image

User-added image

User-added image​​​​​​​

 
Sai_KSai_K 
Hi,

Iam getting below error while doing Process Automation Specialist badge, please suggest.

"Challenge Not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, State has to be US and Country should contain either US, USA, United States, or nothing: []"

Validation Rule: "NOT((State = 'US' && LEN(State) = 2) && ( Country = 'US' || Country = 'USA' || Country = 'United States' || Country = ''))"

Thanks,
Sai
Best Answer chosen by Sai_K
Sai_KSai_K
corrected it myself, state should contain valid 2 character abbrevations..not just US