13
votes
Accepted
Can't set lightning component controller
I was able to recreate the issue, and although I don't know what is causing it, I was able to get past it by changing the name of the apex class:
public class MyContactListControllers {
@...
11
votes
Accepted
The campingList JavaScript controller isn't setting the 'item' as a parameter or saving the record correctly
I ended up moving the createItem function from my helper function to the CampingListController, since Trailhead does not "ask" us to split the createItem into a helper function.
handleAddItem: ...
11
votes
Accepted
Is it possible to create my own Salesforce Trailhead Module?
You might be able to use MyTrailhead for this sort of thing. Not sure if it is yet Generally Available or how much it will cost.
10
votes
Accepted
Who is this Salesforce mascot?
That's Earnie Badger.
Earnie was introduced on Salesforce's Official Blog:
How do you see the Trailhead brand? Who are the main characters?
[...] Earnie Badger was made for our community of ...
10
votes
Accepted
The max apiVersion is 44.0 error
UPDATE
Just got an update that the Spring '19 pre-release signup link is now live. You can access it on this link.
You are getting this error because the LWC project expects a version 45.0 (Spring '...
9
votes
Accepted
Salesforce Platform Developer II superbadge
Update:
As of December 15th 2017, the final two superbadges; Lightning Component Framework Specialist and Advanced Apex Development are now available so you can complete your PDII journey and get ...
9
votes
Accepted
Link Namespace error=invalid_client_id&error_description=client%20identifier%20invalid
This is a timing issue. After setting up the
Dev Hub playground
Packaging Playground
and enabling the Dev Hub in the Dev Hub playground ...
you may need to wait a few minutes for the credentials ...
8
votes
Accepted
Trailhead Apex Superbadge || INVALID_FIELD_FOR_INSERT_UPDATE, cannot specify Id in an insert call: [Id]
The collection newlyCreatedCases is static in the class MaintenanceRequestHelper. That means it will exist for the entire execution context and across all the trigger invocations.
Each trigger ...
8
votes
Accepted
Superbadge - Lightning Experience - Process Builder Challenge Issue
I believe the error is in reading the requirement. You're changing the value of ALL Adventure Packages, not just the one related with the Fulfillment. You probably need to use the Product as a filter.
8
votes
Accepted
Create an Apex class that calls a REST endpoint and write a test class - Trailhead
This is the step by step approach for this implementation.
Animal
public class Animal {
public Integer id;
public String name;
public String eats;
public String says;
}
AnimalResult
...
8
votes
Accepted
8
votes
Accepted
Clarifying Refactor Lesson
In the original code, both createExpense() and updateExpense() construct and enqueue a server-side action, calling the same Apex controller method, saveExpense(). That involves some duplication of ...
7
votes
Accepted
"Your account has been disabled" error message
I spend some time digging deep into why I could not assign a Permission Set to multiple users within my DE org (Developer Edition) to come to the realization that these users were inactive within the ...
7
votes
Cannot Return a List of Strings - Void method must not return a value
You declared your return type as void. Change it to List<String>.
Incorrect
public static void generateStringArray
Correct
public static List<String> generateStringArray
It would be ...
7
votes
Accepted
VS Code, is there a trail regarding installation of JRE8?
Thank you for the feedback and sorry our content was not clearer about how to set up Java for Salesforce Extensions for Visual Studio Code.
We have some better instructions coming in new content in ...
6
votes
Accepted
Trailhead : Apex Integration Services System.QueryException: List has no rows for assignment to SObject
The query in this line is not returning an Account:
Account result = [SELECT Id, Name, (Select Id, Name from Contacts) FROM Account WHERE Id = :AccId];
This is happening because the variable AccId ...
6
votes
Formula that returns the current day of the week
I had the same issue.
Seems the Trailhead Validation engine is looking only for the Day in US timezone
My Dev Org is in AP instance and my user timezone is in ANZ, so the day returned in the ...
6
votes
Prevent SOQL Injection in Your Code
Based on the fact that comparator has a public set and that you don't actually set the value anywhere in your code, I'm going to guess you pull this value from a user input on the page (you didn't ...
6
votes
Accepted
Action failed: c:exspenses$controller$clickCreateExpense [action.setCallBack is not a function]
Javascript is case-sensitive.
action.setCallBack is not a function because setCallBack should be:
setCallback
If you read the documentation from the Lightning developer guide, this is specified:
...
6
votes
Accepted
What is the name of the Salesforce mascot that looks like a leopard/cat version of Astro?
That would be Appy. Below is a link to all the mascots.
https://www.salesforce.com/blog/2017/07/meet-trailhead-characters.html
6
votes
Lightning - An internal server error has occurred Error ID: 1544293028-3109 (-1865483868)
The answer is in the comments, however, here are the details of the error. It looks like there is a problem with serializing Apex objects to JSON.
Calling server controller method, I get the ...
6
votes
Accepted
Styling Issues - Lightning Component Framework Specialist Superbage
A late answer but I've just hit this myself, the issue is your CSS should read as below. Note the space between .THIS and .innertile
.THIS.tile {
position:relative;
display: inline-block;
...
6
votes
Who is this Salesforce mascot?
That must be Earnie, the new female badger. Heard about her the other day from someone in marketing., but she represents getting badges on Trailhead.
6
votes
Accepted
How many times trigger will be invoked if I want to process 30K records?
Yes, you will get the 101 query exception1.
The reason is that all of the trigger "chunks" (I prefer using "chunk" over "batch", because "batch" in Salesforce is a separate thing) are part of the ...
6
votes
Accepted
Method Is Not Visible: APEX Trailhead Unit Testing Challenge
The reason that your test method can't see your operational method is because your operational method was declared as private.
private
This is the default, and means that the method or variable is ...
6
votes
Unable to Authorize Salesforce org using SFDX : Trailhead
Following my steps to make this work
Login into the TrailHead Org.
Log out, and copy the URL you have after you logout
Use this URL to sfdx force:auth:web:login --setalias vscodeOrg --instanceurl --...
5
votes
Accepted
Apex Rest Callouts in Trailhead Apex Integration Service Module
I answered this question in this thread. You should post Trailhead related questions in the Trailhead forum for faster assistance.
5
votes
Accepted
Unable to get request header details
The headers are not serializable and thus do not get translated when parsing as a string, deserializing, etc.
Instead use this:
//assuming you've already created your httprequest object
httpresponse ...
5
votes
Accepted
Stuck on Trailhead 'Connect Components with Events' Challenge
At the time I did it, I used this line of code and it worked. That's true it's not clear in the Trailhead module how to do it.
component.set("v.newItem", "{'sobjectType':'Camping_Item__c','Name':'',...
5
votes
How to change application language?
Go to your Profile
At the bottom right of the page you can change your language
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
trailhead × 305apex × 60
lightning-aura-components × 33
superbadges × 27
lightning × 23
lightning-web-components × 19
unit-test × 13
salesforcedx × 12
community × 10
trigger × 9
visualforce × 7
soql × 7
error × 7
salesforcedx-cli × 7
rest-api × 6
callout × 6
certification × 6
javascript × 5
visual-workflow × 5
soap-api × 5
vs-code × 5
lightning-experience × 4
formula × 4
salesforce1-app × 4
validation-rule × 4