• Kevin Dombroski
  • NEWBIE
  • 35 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 10
    Replies
I'm trying to do a Trailhead for learning Lightning Components titled "Prepare to be Object Agnostic" - the exact instructions are listed below. The problem I am having is when I click "New" to seemingly add a new value to the Picklist, instead of a simple data entry task the "Object Manager" is opening!?!?  I don't understand why - is there a glitch in the Trailhead or am I making a Newbie mistake?  Please advise - thanks! 

Trailhead instructions: 

Finish the Badge Color Picklist
From the Custom Fields section of the Indicator Badge detail page, select the Badge Color picklist.
Scroll down to the Values section and select New.
Enter RosyBrown as a value.
Click Save. Now that we understand the basic shape of our Indicator Badges and we've finished all the fields, let's build a list view for our custom metadata records to help us understand how we put this custom metadata type to work for ZBS.

Here are the screenshots in sequence when I try to do that: 

Click on "Badge Color" hyperlink: 

Click on "Badge Color" hyperlink

Scroll down to "Custom Fields" and click "New": 
Scroll down to "Custom Fields" and click "New" 

I'm expecting to see a simple data entry form so I can enter "RosyBrown" - instead I get the Object Manager in a new tab: 

I'm expecting to see a simple data entry form so I can enter "RosyBrown" - instead I get the Object Manager in a new tab: 
I guess this is a full on newbie question, but I'm working on the Challenge  Developer Beginner  > Apex Basics & Database > Write SOQL Queries... the unit shows sample queries like  "SELECT FirstName,LastName FROM Contact" which work fine when I execute. My question is: when I look at the Contact Object/entity/table, it does not list these fields (see screenshot below). Can someone steer me in/explain why the query works when I don't see these fields/columns!?   LMK - thanks! 

Here is a search Field names like "Last" - I don't see LastName?! 

Screenshot of Field Names for the Contact Object - no LastName listed
I'm trying to do a Trailhead for learning Lightning Components titled "Prepare to be Object Agnostic" - the exact instructions are listed below. The problem I am having is when I click "New" to seemingly add a new value to the Picklist, instead of a simple data entry task the "Object Manager" is opening!?!?  I don't understand why - is there a glitch in the Trailhead or am I making a Newbie mistake?  Please advise - thanks! 

Trailhead instructions: 

Finish the Badge Color Picklist
From the Custom Fields section of the Indicator Badge detail page, select the Badge Color picklist.
Scroll down to the Values section and select New.
Enter RosyBrown as a value.
Click Save. Now that we understand the basic shape of our Indicator Badges and we've finished all the fields, let's build a list view for our custom metadata records to help us understand how we put this custom metadata type to work for ZBS.

Here are the screenshots in sequence when I try to do that: 

Click on "Badge Color" hyperlink: 

Click on "Badge Color" hyperlink

Scroll down to "Custom Fields" and click "New": 
Scroll down to "Custom Fields" and click "New" 

I'm expecting to see a simple data entry form so I can enter "RosyBrown" - instead I get the Object Manager in a new tab: 

I'm expecting to see a simple data entry form so I can enter "RosyBrown" - instead I get the Object Manager in a new tab: 
I guess this is a full on newbie question, but I'm working on the Challenge  Developer Beginner  > Apex Basics & Database > Write SOQL Queries... the unit shows sample queries like  "SELECT FirstName,LastName FROM Contact" which work fine when I execute. My question is: when I look at the Contact Object/entity/table, it does not list these fields (see screenshot below). Can someone steer me in/explain why the query works when I don't see these fields/columns!?   LMK - thanks! 

Here is a search Field names like "Last" - I don't see LastName?! 

Screenshot of Field Names for the Contact Object - no LastName listed
Challenge Requirements:
Create a flow:
Name: New Lead
Type: Screen Flow
In the flow, add a screen with these required screen fields.
Last Name
Company Name
In the flow, create a lead record.
Use the screen fields to set the lead’s Last Name and Company.
Store the lead’s ID in a Text variable called leadId.
In the flow, add another screen with a Lightning component screen field.
Name the field Upload_File
Choose the forceContent:fileUpload Lightning component.
Use the leadId variable to set the component's Related Record ID attribute.
Activate the New Lead flow.
Create a new Lightning page:
Type: Home page
Label: Process Automation Home
In Process Automation Home, add a Flow component that references the New Lead flow.
Activate the page and set it as the default Home page.

I did all of this and yet it says it cannot detect force content?User-added image
User-added image
Cannot pass this challenge although I have passed it on another account.

I've completely recreated every step. The Home page is Process_Automation_Home for developer name. This challenge keeps telling me it cannot find the new lead flow even though I can use the flow on the page to generate a new lead. It has full functionality but apparently theres a magical parameter I can't seem to pass to complete this challenge.
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?
From the "Using Standard List Controllers" example, I tried following the code.  I see the filter option but I don't see "records per page" or previous/next.  Can someone help?  Image and code below.  Thanks, Aron.

User-added image

<apex:page standardController="Contact" recordSetVar="contacts">
        <apex:form >
     
            <apex:pageBlock title="Contacts List" id="contacts_list">
             
                Filter:
                <apex:selectList value="{! filterId }" size="1">
                    <apex:selectOptions value="{! listViewOptions }"/>
                    <apex:actionSupport event="onchange" reRender="contacts_list"/>
                </apex:selectList>
     
                <!-- Contacts List -->
                <apex:pageBlockTable value="{! contacts }" var="ct">
<!-- Pagination -->
    <table style="width: 100%"><tr>
     
        <td>
Page: <apex:outputText value=" {!PageNumber} of {! CEILING(ResultSize / PageSize) }"/>
        </td>           
     
        <td align="center">
<!-- Previous page -->
    <!-- active -->
    <apex:commandLink action="{! Previous }" value="« Previous"
         rendered="{! HasPrevious }"/>
    <!-- inactive (no earlier pages) -->
    <apex:outputText style="color: #ccc;" value="« Previous"
         rendered="{! NOT(HasPrevious) }"/>
     
    &nbsp;&nbsp; 
     
    <!-- Next page -->
    <!-- active -->
    <apex:commandLink action="{! Next }" value="Next »"
         rendered="{! HasNext }"/>
    <!-- inactive (no more pages) -->
    <apex:outputText style="color: #ccc;" value="Next »"
         rendered="{! NOT(HasNext) }"/>
        </td>
         
        <td align="right">
    Records per page:
    <apex:selectList value="{! PageSize }" size="1">
        <apex:selectOption itemValue="5" itemLabel="5"/>
        <apex:selectOption itemValue="20" itemLabel="20"/>
        <apex:actionSupport event="onchange" reRender="contacts_list"/>
    </apex:selectList>
        </td>
     
    </tr></table>
                    <apex:column value="{! ct.FirstName }"/>
                    <apex:column value="{! ct.LastName }"/>
                    <apex:column value="{! ct.Email }"/>
                    <apex:column value="{! ct.Account.Name }"/>
                </apex:pageBlockTable>
                 
            </apex:pageBlock>
     
        </apex:form>
    </apex:page>