function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Cody Enboden 5Cody Enboden 5 

Superbadge: Lightning Experience Rollout Specialist #10

I'm struggling with the custom lightning component on this part. I don't have much background coding and am having trouble finding resources to help me achieve coding the lightning component. If someone could help give me some framework code to create a custom lightning component to hold a URL or direct me to a resource that help break this down I'd be very appreciative.
 
Michele Losch 4Michele Losch 4
I'm having the same issue, have you figured out anything. 
Cody Enboden 5Cody Enboden 5
Still no luck!
Aaron Pratt 8Aaron Pratt 8
Take a look at these links and see if they help:
  • https://trailhead.salesforce.com/en/projects/workshop-lightning-programmatic/steps/programmatic-step-4
  • https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_ui_outputURL.htm
Note that the original component opens the link in a new page.
Samy.SaiedSamy.Saied
The lightning component needed here is very simple and straight forward. Some notes you need to take into consideration is as follows:
  • The component must implement flexipage:availableForAllPageTypes
  • Must contain a UI element that will render as a link to open the link in a new page
  • The component will be hosted in the utility bar.
Cody Enboden 5Cody Enboden 5
I feel like I'm so close, but I just can't get the component to open in a new page here's what I have:

My Lightning Component:

<aura:component implements="flexipage:availableForAllPageTypes" access="global" >
    <aura:attribute name="myURL" type="String" default="https://www.salesforce.com/campaign/destination-success/overview/"/>
    <ui:outputURL value="{!v.myURL}" label="DestinationSuccess"/>
</aura:component>

and my Lightning controller:

({
    navigate : function(component, event, helper) {
         var address = component.find("address").get("v.myURL");
        var urlEvent = $A.get("e.force:navigateToURL");
    urlEvent.setParams({
      "url": 'https://www.salesforce.com/campaign/destination-success/overview/' + address
    });
    urlEvent.fire();
    }
})
MedhanieHabteMedhanieHabte
I added a target="_blank" at the end of the url on the cmp. 
Cody Enboden 5Cody Enboden 5
Could you specify which line that is and how it looks in the line Medhanie? I tried putting it after the URL, but received errors. [Sorry, I'm pretty newbie at coding and every little bit of extra explaination helps! Much appreciated.]
Muzammil BajariaMuzammil Bajaria
I am stuck at challenge 8. I am getting this error "Didn't find a Lightning app named Lightning Knowledge.". I have created the lightning app but still its igving me this error. Please help if anyone have cleared this challenge.

Thank You
Cody Enboden 5Cody Enboden 5
@Muzammil Did you re-name the app after making it? I believe I originally ran into this error, but once I deleted the app altogether and named it correctly from the beginning it worked, however like I said when I tried re-naming it to be the correct name/api, I received that error.
Muzammil BajariaMuzammil Bajaria
Not renamed but I edited that lightning app
Muzammil BajariaMuzammil Bajaria
Strang. I deleted the app and created the new app and not it works. Thaks Cody
 
Cody Enboden 5Cody Enboden 5
@Muzammil No problem!
Muzammil BajariaMuzammil Bajaria
Can Anyone guide me how to replace link with custom lightning component? I am at step 10
Michele Losch 4Michele Losch 4
I added this after the inital attribute 
<li>
    target=" _blank"
    
    </li>
It opens the link and gets pass the error 
Muzammil BajariaMuzammil Bajaria
I completed that step ut I am suck at Campaign Influence Lightning report. I am getting this error : "The Campaign Influence Lightning report must have the correct 1. Aggregate, 2. Columns, 3. Groupings, and 4. Filter." 
Any Idea how to solve this? I have never used report filters in URL.
Michele Losch 4Michele Losch 4
How did you get pass the upsell link
Muzammil BajariaMuzammil Bajaria
I created a new lightning action and assigned CreateOppty lightning componenent to that action.
 
Michele Losch 4Michele Losch 4
ok thanks now onto the campaign influence lol
Michele Losch 4Michele Losch 4
Muzammil- Have you figured out the campaign influence url
MedhanieHabteMedhanieHabte
Here's what my report looks like. I've edited the columns and aggregates, groupings too, and added some filters, but still no go.

User-added image
Michele Losch 4Michele Losch 4
Mine's similar and still getting the error
Muzammil BajariaMuzammil Bajaria
I addedd all the columns, grouped columns by campaign Name, aggregated opportunity amount column and still I am also not able to complete the challenge. Do we have to add filters? What filters we have to add? I can't see any filters in original report.
Samy.SaiedSamy.Saied
@MedhanieHabte

I think you got the filters wrong, check the screens below.
User-added image
Michele Losch 4Michele Losch 4
I'm now getting this error: Challenge Not yet complete... here's what's wrong: 
The View Lightning Campaign Influence Report link on the Campaign object must use a relative URL and dynamic filter values.

I haven't worked much with filter values so completing lost
Cody Enboden 5Cody Enboden 5
Could you guys specify how you solved the CreateOppty section? Did you have to alter the code at all? When you say a new action do you mean assigning that code to another utility bar, dragging the CreateOppty on the page layout, or otherwise?
Michele Losch 4Michele Losch 4
Cody- Create a new action on the case object and add it to the case page layout
Michele Losch 4Michele Losch 4
Has anyone had any luck with the url? 
Medhanie Habte 37Medhanie Habte 37
Hi guys, I did it! I simply added this formula to the link I created. It needs to be visible in lightning only but can be access from Salesforce Classic.

All you need to do is take the Id and add it to the button, that starts with 00O and that's it! Here's my code below. Just be sure to use the ID of your report.
/one/one.app#/sObject/00Of40000039khx/view?fv0="&{!Campaign.Id}
Michele Losch 4Michele Losch 4
Not working for me. This is my link 
https://cunning-bear-378608-dev-ed.lightning.force.com/one/one.app#/sObject/00O1I000000HdmP/view?fv0="&{!Campaign.Id}

I don't know what I'm doing wrong. 
Cody Enboden 5Cody Enboden 5
I still can't get mine to work!

User-added image
https://codyenboden-dev-ed.lightning.force.com/one/one.app#/sObject/00O1I000000g8HDUAY/view?fv0="&{!Campaign.Id}

Does this look right?
Samy.SaiedSamy.Saied
@Cody Enboden 5
Your URL needs to be relative and not hard coded the full URL, just take force.com part out from your URL.
Cody Enboden 5Cody Enboden 5
Thank you!! Just got the badge :)
Caleb SidelCaleb Sidel
The below is too complex

<aura:component implements="flexipage:availableForAllPageTypes" access="global" >
    <aura:attribute name="myURL" type="String" default="https://www.salesforce.com/campaign/destination-success/overview/"/>
    <ui:outputURL value="{!v.myURL}" label="DestinationSuccess"/>
</aura:component>

All you need is a url, so skip the entire aura:attribute and skip any/all javascript. Just keep it simple. value can be a hard coded URL like "https://www.google.com"
Thomas DennisThomas Dennis

@Samy.Saied or anyone in this thread, when you are creating the dynamic URL 
what is the ID in bold referring to? is it the report ID something is not right in my url it is returning the error: Challenge Not yet complete... here's what's wrong: 


The View Lightning Campaign Influence Report link on the Campaign object must use a relative URL and dynamic filter values.

/one/one.app#/sObject/00O1I000000g8HDUAY/view?fv0="&{!Campaign.Id}

Thomas DennisThomas Dennis

Challenge Not yet complete... here's what's wrong: 
The View Lightning Campaign Influence Report link on the Campaign object must use a relative URL and dynamic filter values.

Everything works fine as far as i can tell, its not checking out in the salesforce trailhead and returning the above error here are screengrabs:

my report
User-added image
my Url link settings

/one/one.app#/sObject/00O1I000000gMcTUAU/view?&fv0={!Campaign.Name}&fv1={!Campaign.Id}

User-added image
what page the link leads to when i click on it on the campaign page

User-added image
Shukla YogeshShukla Yogesh

Hi All
I don not see the Article Types as mentioned by a few people because I have enabled the Lightning Knowledge and it doesn't allow more than 1 Article Type. I have created a Record Type  custom field on Knowledge__kav object. I have created 3 page layouts for for 3 reords types - FAQ, Community, Product [Article Type haven't come in picture]. Requirements doesn't specify what  additional fields, actions and related list we need to add in these 3 pagelayouts so I have not added anything extra [Record Type is by default added so I haven't added that]. 
I'm getting below validation error:

Challenge Not yet complete... here's what's wrong: 
Each article record type must contain the Question, Answer, and Record Type fields. Knowledge users must have the ability to select a record type when creating or editing articles.

Any suggestion please what I'm doing wrong here? I have been trying whole day but no luck. TIA

Regards
Yogesh
 


 

Nicole McGuire 10Nicole McGuire 10
FYI: I kept getting this error: Challenge Not yet complete... here's what's wrong: 
The View Lightning Campaign Influence Report link on the Campaign object must use a relative URL and dynamic filter values.

I knew I had the URL correct: /one/one.app#/sObject/<your report ID>/view?fv0={!Campaign.Id}  but it kept throwing the above error. I then realized I had just gone into the existing "View Campaign Influence Report" and didn't change the Label & Name of the link to: "View Lightning Campaign Influence Report".  Once, I did that I completed the superbadge!   
 
Shukla YogeshShukla Yogesh
After making some changes in object record type & fields I was able to complete Step 8. Thanks Yogesh
Thomas DennisThomas Dennis
Thanks Nicole the naming conventions I had were wrong. Badge earned.
Scott Searle 10Scott Searle 10
What was the answer to the original question? I can't seem to get the link to open in a new window.
Shukla YogeshShukla Yogesh
Hi Scott

You need to add target between outputurl and aura attribute tags:
<li>
target=" _blank"
</li>

Let me know if you are still facing issue.
Tushar Mudgal 24Tushar Mudgal 24
Hi,
I am getting below error for challange 10

Challenge Not yet complete... here's what's wrong: 
Didn't find a replacement for the UpsellCrosssellOpportunity link that uses the CreateOppty custom Lightning component.

can anyone tell me what I am doing wrong?
 
Shukla YogeshShukla Yogesh
Follow the readiness report you will get the answer. There is a link which needs to be replaced by create opty component. Let me know if you still face issue.
Tushar Mudgal 24Tushar Mudgal 24
I am stuck on this part Yogesh
Michele Losch 4Michele Losch 4
Tushar- the component needs to be placed on the case page layout
Tushar Mudgal 24Tushar Mudgal 24
I have added it on Case page layout and removed UpsellCrosssellOpportunity Link still showing me same error. :(
 
Shukla YogeshShukla Yogesh
I don't remember but I think I had changed the name of the link too.
Scott Searle 10Scott Searle 10
Thanks, Shukla. That did work and I got the badge, although I am not sure why we need to build code for a Lightning Component to do what the Rich Text component already does with a link. 
Tushar Mudgal 24Tushar Mudgal 24
@Thomas Elmström 7

Just got the Superbadge. :) You need to follow below steps:

1. Create Quick action in Salesforce classic
User-added image
2. Add this quick action to Case page layout in Salesforce1 and lightning action

User-added image
 
that's it. You are done.

Thanks,
Tushar Mudgal
Weston Kingery 1Weston Kingery 1
Can anyone solve this final report?  I too have Challenge Not yet complete... here's what's wrong: 
The Campaign Influence Lightning report must have the correct 1. Aggregate, 2. Columns, 3. Groupings, and 4. Filter.
 
I don't know where the original report went, so i must make this one from scratch.
Clayton Thomas 6Clayton Thomas 6
Weston Kingery 1Weston Kingery 1
it has to be:

View_Lightning_Campaign_Influence_Report
Kevin_FleckKevin_Fleck
I think I'm at the very end and my error now says: 

Challenge Not yet complete... here's what's wrong: 
The View Lightning Campaign Influence Report link must be included in the Campaign page layout.


but its CLEARLY there, the link is clickable and working fine. Is it just cached or something?
Scott Searle 10Scott Searle 10
I believe you need to rename it to View_Lightning_Campaign_Influence_Report. 
silpa garikapatisilpa garikapati
Hi,
I am geeting error  in lightning experience rollout speciallist superbadge
User-added image
 
Shukla YogeshShukla Yogesh
Cross check the Org Home home page and it should have all the components mentioned in error.
silpa garikapatisilpa garikapati
 I have include all components.please find below screenshot stiil getting error.User-added image
silpa garikapatisilpa garikapati
Hi,
I am getting error in lightning experience  rollout specialist superbadge#10
Didn't find a replacement for the UpsellCrosssellOpportunity link that uses the CreateOppty custom Lightning component
Shukla YogeshShukla Yogesh
Go to the classic case page layout and replace the link with component.
silpa garikapatisilpa garikapati
Thanks
LJ-DevLJ-Dev
Hi @shukia, I understand the link gets removed from the classic page, but doesn't the component have to be added to the lightning page? I removed the link and added the component from the lightning page and still get the error that Silpa is getting. Thanks.
Shukla YogeshShukla Yogesh
You need to do 2 things. 1. In classic view change content source of link to createoptty component. 2. Add this to Salesforce 1 & Lightning Actions in page layout. All in Classic view. Let me know if still facing any error.
V Shankar 4V Shankar 4
Hi,

I too got the same error: The Campaign Influence Lightning report must have the correct 1. Aggregate, 2. Columns, 3. Groupings, and 4. Filter.
Then I was able to solve it by reading the comments. My 'View_Lightning_Campaign_Influence_Report' link has the following URL:

/one/one.app#/sObject/<Report_ID>/view?fv0={!Campaign.Name}&fv1={!Campaign.Id}

I have included two filters in my 'Campaign_Influence_Lightning' Report - Campaign Name equals null AND Campaign ID equals null.

Thanks for all your replies. I have finally completed the Superbadge :)

Regards,
Shankar
Rogan Sam Derik 16Rogan Sam Derik 16
Shankar,
 I am unable to set the Campaign Id to null.
Any other solutions?
 
Shivam GShivam G
Hi,

Unable to complete challenge step #10 getting below error.

Challenge Not yet complete... here's what's wrong: 
The Campaign Influence Lightning report must have the correct 1. Aggregate, 2. Columns, 3. Groupings, and 4. Filter.

 As they have not mentioned exact requirement for report what aggregate,columns and grouping we have to use. Please share the screenshot, what exactly you have done to pass this challenge.

Thanks!
V Shankar 4V Shankar 4
Hi Rogan Sam Derik 16,

Try setting the filter condition in Classic.

User-added image

Regards,
Shankar
V Shankar 4V Shankar 4
Hi Shivam Gupta 9,

Here you go:

User-added image

1. Aggregate - I have summarized Opportunity Amount field
2. Columns - Please refer to the above image
3. Groupings - Group by 'Campaign Name'
4. Filter - Campaign Name equals null AND Campaign ID equals null

Regards,
Shankar
Tom Zimmerman 2Tom Zimmerman 2
I am stuck on the first step of this challenge.  See below
Challenge Not yet complete... here's what's wrong: 
Couldn't find a Lightning component named DestinationSuccess.

I've read through everyones comments and it has helped me create the component with the below code (thank Cody, most of the way there)
<aura:component implements="flexipage:availableForAllPageTypes" access="global" >
        <aura:attribute name="myURL" type="String" default="https://www.salesforce.com/campaign/destination-success/overview/"/>
    <ui:outputURL target="_blank" value="{!v.myURL}" label="DestinationSuccess"/>
</aura:component>

({
    navigate : function(component, event, helper) {
         var address = component.find("address").get("v.myURL");
        var urlEvent = $A.get("e.force:navigateToURL");
    urlEvent.setParams({
      "url": 'https://www.salesforce.com/campaign/destination-success/overview/' + address
    });
    urlEvent.fire();
    }
})

I've successfully added the link to the sales app yet continue to get the same error.  Does anyone have any solution to this problem?
V Shankar 4V Shankar 4
Hi Tom Zimmerman 2,

I have used only '<ui:outputURL>' tag and hardcoded 'https://www.salesforce.com/campaign/destination-success/overview/' for the value instead of calling the function. Try this please.

Regards,
Shankar
Tom Zimmerman 2Tom Zimmerman 2
Should I be concerned that i am getting the error that it cant find the component named DestinationSuccess... clearly that component is there...  i checked the spelling a few times.  
V Shankar 4V Shankar 4
Hi Tom,

Did you add the 'DestinationSuccess' component to the 'Utility Bar' of Sales App? Can you see something like the below image?
User-added image 
V Shankar 4V Shankar 4
Hi Tom,

The issue is with your label. It should be 'Destination Success Registration'. You have given as 'DestinationSuccess'.

Regards,
Shankar
Tom Zimmerman 2Tom Zimmerman 2
I've created and deleted the lightning component a few time in trying to get it to work (so that i can start over).  

If I go to open the component in 'File>open resource' then i get an error that 'the requested resource does not exist'
BUT when i go to 'File>open lightning resources' i am able to open the component.

Did I break something and now the trailhead checker is looking at the wrong thing? 
V Shankar 4V Shankar 4
I too can see only under 'File -> Open Lightning Resources' only. You did not break anything :)
Tom Zimmerman 2Tom Zimmerman 2
Still getting the same error...  below is a screen shot of my sales page.
User-added image
Tom Zimmerman 2Tom Zimmerman 2
Sorry for the bad screen shot...
Shukla YogeshShukla Yogesh
Hi Tom Have you edited the Sales App and added the component in utility bar items? I did it earlier not sure if anything has changed in challenge. Yogesh
Shivam GShivam G
Hi V Shankar 4,

Thank you!!

​you are awesome.. i have completed this challenge.. :)

Regards,
Shivam
V Shankar 4V Shankar 4
Tom, I did not want to give you the code, but since it is not working for you, please find the code below:

DestinationSuccess.cmp:

<aura:component implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickActionWithoutHeader" access="global" >
    <ui:outputURL value="https://www.salesforce.com/campaign/destination-success/overview/" label="Destination Success Registration" target="_blank"/>
</aura:component>

DestinationSuccessController.js

({
    myAction : function(component, event, helper) {
        
    }
})

Note: I have created only Component and Controller and did not create anything else (helper etc.). Let me know if it helps.

Regards,
Shankar
Tom Zimmerman 2Tom Zimmerman 2
Shankar,
I replaced my code with what you provided and am getting the same error.  I definitely screwed something up.  I need to take a break and look at it in a little bit... my head is spinning.
Thanks again
Tom
Tom Zimmerman 2Tom Zimmerman 2
Shankar,
I got it working with my original code...  and honestly, i couldnt tell you why it is working now as opposed to 2 hours ago.  thanks again for your help!

 
Priyankar Pakhira 39Priyankar Pakhira 39
Hi Yogesh,

Please can you let me know how you can mitigate below issue
Challenge Not yet complete... here's what's wrong: 
Each article record type must contain the Question, Answer, and Record Type fields. Knowledge users must have the ability to select a record type when creating or editing articles.

Actually I am getting the same issue.

 
Tom Zimmerman 2Tom Zimmerman 2
Finally got the superbadge!  Thanks everyone for the help!!!
V Shankar 4V Shankar 4
Hi Tom,

Happy to help. Congrats for the superbadge :)

Regards,
Shankar
V Shankar 4V Shankar 4
Hi Priyankar Pakhira 39,

I followed the below steps:

* Assigned 'Knowledge User' feature licence for myself.
* Switched to Classic. Setup -> Knowledge -> Knowledge Object Setup.
* Created two fields 'Question' and 'Answer' as described in the requirements.
* Created three new Record Types.

User-added image

* Created three new Page Layouts

User-added image

* Assigned the page layouts to the corresponding record types.
* Created a Lightning App called 'Lightning Knowledge' and customized it as described in the requirements.

Please follow the above steps and let us know if you face any issues.

Regards,
Shankar
John Mirata 5John Mirata 5
Hello Shankar,  I've following the following steps, but I'm stuck and still getting the following error:

Didn't find article record types with the following names: FAQ, Product, and Community. Each article record type must be assigned to the correct page layout.
Shukla YogeshShukla Yogesh
Are you sure the id you have hard coded in this url is the campaign influence report id?
Stephen NStephen N
Make sure your report type = Campaigns with Influenced Opportunities
Niels PetietNiels Petiet
Hi @john mirata 5 I was able to resolve the error "idn't find article record types with the following names: FAQ, Product, and Community. Each article record type must be assigned to the correct page layout." by simply adding the Article Record Type field to each of the three layouts.
Anja BotićAnja Botić

I can replace the UpsellCrosssellOpportunity link, cause there is no custom Lightning component link listed in the choices in the Case layout. 

Can someone walk me through that step? 

Rafael Suarez MarquezRafael Suarez Marquez
@Anja, you probably solved it by now, but just in case:
Go to the Case Layout, and remove the UpsellCrosssellOpportunity link
Repeat with the Case (Support Layout)
  • Now  go to The Case Object, open the Buttons Links & Actions  section on the left side
  • Click NEW ACTION on the top right button
  • Select Action type = Light Component
  • Light Component = c.CreateOppty. You will find it only if you deployed the package as indicated during the initial org prep
  • Label with the same name for the link  you removed "UpsellCross..."
  • Let SFDC write the name
  • Dont touch any other fields, Just Save
  • Return to the Case Layouts you touched
  • Look for the wrench icon on the Mobile Actions Stripe, click it to enable it
  • Select Mobile & Light Actions from the Tools Menu
  • Drag the Action you created to the mobile and light exp actions stripe
  • Save and Repeat for the remaining Case Layout
Thats it
Marissa Geller 8Marissa Geller 8
Thank you all so much!!  
Victor Almeida 9Victor Almeida 9
Hello: I'm confused on the 10th challenge with respect to My Domain.  When I check in Setup, I do NOT have My Domain set up, yet the instructions imply that it should be:
"As in other challenges, you'll be doing your work in a free Trailhead Playground org (TP). Use a new TP to avoid unnecessary challenge errors. Note that your Trailhead Playground already has My Domain turned on. DO NOT edit the My Domain settings."
I assume I need that to create the component?  How do I proceed?  Thanks for your help.
Missy LongshoreMissy Longshore
I'm also struggling with the 10th challenge and the Lightning Component - do we really need to know javascript and Apex to complete this superbadge? What are the best trailhead modules to complete to understand step by step how to create a similar, relevant Lightning Component that involves a URL? Currently I have opened the developer console and created TrailheaDX.cmp but I didn't know I needed to check several of the boxes on the first popup so I need to delete it and start again and I can't figure out how to do that. Thanks! 
Missy LongshoreMissy Longshore
@Victor Almeida 9   Are you sure My Domain is not turned on? Can you post a screen shot? I'm in the same org I've used for steps 1-9 of the superbadge and when I go to Setup -- My Domain I can see under 'My Domain Settings' that My Domain is: cunning-bear-360249-dev-ed 
Good luck, this badge is a tough one! 
Victor Almeida 9Victor Almeida 9
@Missy Longshore: Here's the org that I launch with the blue Launch button for the challenges.

Org I have used for Challenges 1-9
John Lawrence Catan 9John Lawrence Catan 9
Anyone else encountering this error?

The Lightning component named TrailheaDX must open a link to https://developer.salesforce.com/trailheadx/, must open in a new window (using the target attribute of ui:outputurl), and must be included in the Sales app.

The component is correct, named TrailheaDX, opens up the link and is added in the Lightning Sales App and yet I still get that error. Can't complete the badge.
Julie Baxter 18Julie Baxter 18
Hi @John Lawrence Catan 9 - I have absolutely no knowledge of apex code and don't know where to start on this.  I have tried going through various posts but can't find any clue as to how to create the component with the relevant attributes.   Can you point me in the right direction by any chance? Thank you!
Missy LongshoreMissy Longshore
Hi @Julie Baxter 18 - you'll need to start in the Developer Console and click New -- Lightning Component. That's where you'll need to create some custom code according to some of the earlier posts you may have seen. You'll need an aura component. Hang in there, and good luck! 
Beth FanningBeth Fanning
@John Lawrence Catan 9 I am having the same issue...were you ever able to resolve?
 
Missy LongshoreMissy Longshore
@Beth Fanning and @John Lawrence Catan 9 I believe the Superbadge step #10 was recently changed from being a destination success link to a TrailheaDX link and wording so it's possible it's an error with the challenge checker itself. I would start a new question on this topic alone and then also ask @trailhead and @asksalesforce on Twitter for help to see if you can get an answer from the team directly (I just finished the badge on Jan 31, 2018 and when I did it had some destination success elements to it and I passed). Just a thought, good luck! 
Beth FanningBeth Fanning
Thank you! I was finally able to pass yesterday. I had a typo in my code.
Mitchell Mariche SantosMitchell Mariche Santos
how do you do to pass the last challenge?
User-added image
Beth FanningBeth Fanning
I adapted the destination success code I’ve seen posted in other threads...it’s just a couple of minor changes. Good luck!
Mitchell Mariche SantosMitchell Mariche Santos
This is my code to TrailheaDX.cmp:
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction" access="global" >
 <aura:attribute name="myURL" type="String" default="https://developer.salesforce.com/trailheadx/"/>
    <ui:outputURL value="{!v.myURL}" label="TrailheaDX" target="_blank"/>
</aura:component>

TrailheaDXContoller.js:
({
    navigate : function(component, event, helper) {
         var address = component.find("address").get("v.myURL");
        var urlEvent = $A.get("e.force:navigateToURL");
    urlEvent.setParams({
      "url": 'https://developer.salesforce.com/trailheadx/' + address
    });
    urlEvent.fire();
    }
})
John Lawrence Catan 9John Lawrence Catan 9
I've been able to pass and get the superbadge. It is expecting the old Destination Success component. It may be that the challenge was not updated correctly.

My component:

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction" access="global" >

<aura:attribute name="myURL" type="String" default="https://www.salesforce.com/campaign/destination-success/overview/"/>

   
   <ui:outputURL value="{!v.myURL}" label="DestinationSuccess" target="_blank"/>
   
</aura:component>

Controller:

({
myAction : function(component, event, helper) {

}
})
William123456789William123456789
For me both the old and new code do not seem to solve the issue. Anyone has more ideas or code option to try?
Jagz Bains 7Jagz Bains 7
Likewise, both the old and new code does not work, I'm stuck with the error message: Couldn't find a Lightning component named TrailheaDX. Does anyone have a solution to this please?
Eduardo MunizEduardo Muniz

In the new Superbadge (2018) .. please, check this:  

Setup > Object Manager > Campaign > Buttons, Links, and Actions > View Lightning Campaign Influence Report (you created) - check the name and label

Edit this Report and check the link:

only after salesforce.com, just like this: one/one.app?source=alohaHeader#/sObject/YOUR_REPORT_ID/view

 

Eduardo MunizEduardo Muniz

@Jagz Bains 7 ... You need a component...

1.Open the Developer Console (Setup > Developer Console)

2.File > New > Lightning Component  - save with the name: TrailheaDX

3.Open the Component and paste this code:

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" access="global" >
    <aura:attribute name="myURL" type="String" default="https://developer.salesforce.com/trailheadx/"/>
    <ui:outputURL value="{!v.myURL}" label="TrailheaDX" target="_blank"/>
</aura:component>

4.Open the Controller and paste this code:

({
    navigate : function(component, event, helper) {
        var address = component.find("address").get("v.myURL");
        var urlEvent = $A.get("e.force:navigateToURL");
        urlEvent.setParams({
            "url": 'https://developer.salesforce.com/trailheadx/' + address
        });
        urlEvent.fire();
    }
})

5.Save all

6.Add this component in the Sales page. 

Setup > App Manager > Edit  Sales (Lightning Sales)  > Utility Bar > Add TrailheaDX

I hope this has helped you.

 

 

Sabrina ChenSabrina Chen
I wonder why we need controller for TrailheaDX. I first created a controller, then deleted it. After all, with or without it, I see no difference made. 

Can someone please explain why we need a controller for this case? Thanks!
Kumara Murali 42Kumara Murali 42
Finally I am able to complete this challange. Thank you fellows for all your suggestions. I was stuck with the Controller and URL. 
Eduardo Muniz, code helped me. and used this URL : /lightning/r/Report/<Report ID>/view?=&fv0={!Campaign.Name}&fv1={!Campaign.Id}
The URL mentioned in the older threads does not work.
LABBOOLABBOO
I'm still having problems.  I go through the issues with the TrailheaDX home page link and the ones for the Upsell but the Campaign Influence report is still giving me the "The View Lightning Campaign Influence Report link on the Campaign object must use a relative URL and dynamic filter values."  error.  I modified the existing report and saved it with the correct name.  I have the new link named View Lightning Campaign Influence Report for the label and View_Lightning_Campaign_Influence_Report as the name and the URL set as /one/one.app#/sObject/00Of4000005lsmU/view?&fv0={!Campaign.Name}&fv1={!Campaign.Id}  but I'm still not passing this.  Can anyone help me?
LABBOOLABBOO
Oh, and I confirmed the link works so I really don't get why it's not passing the check
 
T-HibbsT-Hibbs
I'm having the same issue as previously report: "Challenge Not yet complete... here's what's wrong: 
The View Lightning Campaign Influence Report link on the Campaign object must use a relative URL and dynamic filter values." Also have been able to confirm that the link works as expected and opens the correct report.

Any ideas? Is this is a known bug?

Link Setup:
User-added image

Report Setup:
User-added image
Manuel Bustos 9Manuel Bustos 9
I'm having the same issue:
"Challenge Not yet complete... here's what's wrong: 
The View Lightning Campaign Influence Report link on the Campaign object must use a relative URL and dynamic filter values."
User-added image
User-added image
User-added image

There you can see the link and the report definition, can anyone tell me what is wrong?
thanks
T-HibbsT-Hibbs
@manuel -

I figured out the problem - not sure when but the Relative URL format has changed for Lightning. Insert this format (adding your report ID) and it should work. I updated my report link and passed.
URL:
/lightning/r/Report/REPORT_ID/view?fv0={!Campaign.Id}
Manuel Bustos 9Manuel Bustos 9
Thanks @Taylor you are great! i finally was able to complete the superbadge with your help!
regards
Tommy WoodhouseTommy Woodhouse
@Taylor Hibbs 2
+1 Works for me aswell, wish I scrolled down to the bottom intially xD 
Jessica White 27Jessica White 27
@Taylor thank you! this was what i finally needed. None of the other url structures worked....
Neeraj Kandukuri 12Neeraj Kandukuri 12
Hello All, 

I am trying to complete my Super Badge for Lightning and got stuck at the last challenge. Please see the below error I am facing and I have spent a lot of time trying to figure out but currently out of options. I feel so close in completing this challenge. Any help is much appreciated. Please see the code below. I have also added the TrailheaDX component to the lightning sales utility bar. 
User-added image

Component:

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction" access="global" >
     <aura:attribute name="myURL" type="String" default="https://developer.salesforce.com/trailheadx/"/>
    <ui:outputurl value="{!v.myURL}" label="TrailheaDX" target="_blank"/>
</aura:component>

Controller:

({
     navigate : function(component, event, helper) {

         var address = component.find("address").get("v.myURL");

        var urlEvent = $A.get("e.force:navigateToURL");

       urlEvent.setParams({

       "url": 'https://developer.salesforce.com/trailheadx/' + address

    });

    urlEvent.fire();

    }
})
Haley Fongemie 8Haley Fongemie 8
Hi all,

I'm at the last step of #10 and while the View Campaign Influence Report lightning component seems to be working, Trailhead is still giving an error. I can't identify what might be the issue here. Any ideas?

The component with link is on the Campaign Layout:
 User-added image

The link opens the lightning report with filters:
User-added image

My component is:
 
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
    
    <ui:outputURL value="/lightning/r/Report/00Of20000074sdYEAQ/view?fv0={'!Campaign.Name'}&amp;fv1={'Campaign.Id'}" label="View Lightning Campaign Influence Report"/>

                                                                                                                                             </aura:component>


With all of that I am still getting an error:

User-added image
 
vmunna01vmunna01
This is the URL that I got struck for more than a week. This worked to get the Superbadge. Thanks @Taylor Hibbs 2
/lightning/r/Report/<Report ID>/view?=&fv0={!Campaign.Name}&fv1={!Campaign.Id}
Haley Fongemie 8Haley Fongemie 8
@Venu I can't save that URL in Developer Console - I get an error of "The reference to entity "fv1" must end with the ';' delimiter."
vmunna01vmunna01
@Haley why you saving that URL in Dev Console? It's for the formula field of URL on Campaign object. Goto> Buttons, Links and Actions of Campaign object from Object Manager and Click 'New Button or Link'
Haley Fongemie 8Haley Fongemie 8
@Venu I already have a new Link that does that and works correctly, but still get the error when checking challenge. I thought that it must be looking for a lightning component instead.

User-added image

User-added image

User-added image

User-added image

 
vmunna01vmunna01
@Haley The image of report you showed seems odd.. It should be something like this 
if you opened directly...

if opened in reports directly

If you opened from any campaign record

User-added image

and the link should be added in page layout for Campaign

User-added image

Hope this helps !!
Haley Fongemie 8Haley Fongemie 8
@Venu The report screenshot I showed was after I had clicked from the campaign record to demonstrate that the Name and ID are indeed passing through to the report filters. When accessing the report via Reports tab, the filters are blank as you show.

So - it sounds like it needs to be a Custom Link, not a Custom Button or Lightning Component?

I removed the component and buttons, and added it as a Custom Link. Added it to the Detail page layout and refreshed the Lightning record page... and still getting the same error that it must use a relative URL and dynamic filter values.

User-added image

 
Nitika Semwal 11Nitika Semwal 11
@Samy.Saied
I think I am getting this error beacuse I have not created this report with "Campaign Influence report type".  I am not able to find Campiagn Influence report type in my trailhead org. I have created the report with Campaign report type.
Please help
User-added image
Deepshikha Rajput 2Deepshikha Rajput 2
@Venu ANd @ haley, I am also stuck @ that point here is my screenshot: appreciate any inputUser-added image
Hemendra Malik 12Hemendra Malik 12

I am stuck at this error tried several solutions given prior in this thread but nothing worked. Any help would be much appreciated


ErrorUser-added image


 
Vaibhav PurohitVaibhav Purohit
I'm getting the relative link error while i've already done all mentioned in the thread

User-added image
I have tried variations of the link from different sources but all give the same error:
The View Lightning Campaign Influence Report link on the Campaign object must use a relative URL and dynamic filter values.
The link itself works fine, it takes me to the report from the campaign page, i even logged out and back in, but nothing seems to work.
Any suggestions?
Vaibhav PurohitVaibhav Purohit
Hey guys i got it with a few more tries,
Theres no need to use the /one/one#app link

I changed my link as : /lightning/r/Report/00O6F00000Coz67UAB/view?fv0="&{!Campaign.Id}
and it worked.
vmunna01vmunna01
@Deepshikha Rajput 2 and Hemendra Malik 12 you can try this URL

/lightning/r/Report/<Report ID>/view?=&fv0={!Campaign.Name}&fv1={!Campaign.Id}
or 
/lightning/r/Report/<Report_ID>/view?fv0={!Campaign.Id}

change the <Report ID> with your Custom Report Id (the attached image worked for me)
User-added image


@Vaibhav Purohit Congrats!!!


Hemendra Malik 12Hemendra Malik 12
@Venu M 18, Thank you so much Venu. It worked for me. God bless.
Deepshikha Rajput 2Deepshikha Rajput 2
Thanks  @Venu M 18, It worked. 
Velma McConnell 18Velma McConnell 18
I am still having the issue with the URL.
This is my Button or Link URL:
/lightning/r/Report/00O5A000007ZCouUAG/view?=&fv0={!Campaign.Name}&fv1={!Campaign.Id}

My filters on the report are: Select A Campaign, Campaign Name = "", Campaign ID = ""

I have also tried doing this with passing just the Campaign.Id

 
Nathan Rosenstein 9Nathan Rosenstein 9
@Velma McConnel   You have to create a Action like this..User-added image
and then on the case layouts remove the link URL and override the predefined actions and add the action..User-added image
Reginaldo Sumihara 31Reginaldo Sumihara 31

Hi guys!

Could me help solve this issue?


User-added image

I saw several posts about this problem and I try to follow the all tips to solve this challenge. But I not able to finish this challenge.

sai teja 69sai teja 69
Helloo...I am also getting same error. Please help anyone to solve this.

Challenge Not yet complete... here's what's wrong: 
The Lightning component named TrailheaDX must open a link to https://developer.salesforce.com/trailheadx/, must open in a new window (using the target attribute of ui:outputurl), and must be included in the Sales app..

Component code. I added this "TrailheaDX" component to the sales app utility bar. But still error is coming.User-added image
<aura:component implements="flexipage:availableForAllPageTypes" access="global" >
    <ui:outputurl aura:id="TrailheaDX" value="https://developer.salesforce.com/trailheadx/" label="TrailheaDX Registration" target="_blank" />
</aura:component>



 
Raviteja VakkalagaddaRaviteja Vakkalagadda
For those who are facing an issue with relativer URL and dynamic values, I tried using the below URL and succeded
/lightning/r/Report/00O0o00000BssbR/view?=&fv0={!Campaign.Name}&fv1={!Campaign.Id}
Daniel RobertsDaniel Roberts
Hey guys, where do you get the requirements for the Campaign influence report? Mainly,  1. Aggregate, 2. Columns, 3. Groupings, and 4. Filter.

It doesn't seem to be anywhere in the requirements...
SaraagSaraag
For The View Lightning Campaign Influence Report link on the Campaign object must use a relative URL and dynamic filter values.

Another possible Solution:
After making sure you are using the right URL as mentioned by many in this post. (/lightning/r/Report/REPORTID/view?=&fv0={!Campaign.Name}&fv1={!Campaign.Id}). Check if trailhead is even finding your new custom link- edit the API name of the campaign custom link and add test at the end. Check the challange again, if it still gives you an error, copy the link name from error message and paste it in the label and adjust the API field of your custom link by replacing spaces with underscore. This worked for me! I had a typo in the label/API.

TLDR: Trailhead gives you the same cryptic error even when it can't find the custom link because of a typo.

@Daniel Roberts- check the Campaigns with Influenced opportunities report in classic under campaigns folder.
Ernie Banzon 3Ernie Banzon 3
Guys, fast-forward 2019, this is probably the latest to solve the relative URL issue. Spent few hours figuring this out until I observe that the url generated is in this format: /lightning/r/Report/00O2E000007CWOP/view?fv0={!Campaign.Name}&fv1={!Campaign.Id}. I know some already mentioned this, but I just want to share my personal experience on this.
lcycuglcycug
I finish the challenge by changing the existing label and name of "View Campaign Influence Report" under Campaign to "View Lightning Campaign Influence Report" and "View_Lightning_Campaign_Influence_Report".
User-added image
Tim Ning 2Tim Ning 2
Yes. This challenge is quite tricky.

I added a new report named Campaign Influence Lightning and then added a new Default Custome Link named View Lightning Campaign Influence Report on Customize - Campaigns - Buttons, Links, and Actions in CLASSIC mode. 

The code for the link should be : 
/lightning/r/Report/<<<replace with The Campaign Influence Lightning Report's ID>>>/view?fv0={!Campaign.Id}
Assigned this link to the page layout. Done!!

 
Christian Schwabe (x)Christian Schwabe (x)
Hello everyone,

I get the following response from support:

 [....]

1. Create a new lightning component named as TrailheaDX.
<aura:component
implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction"
access="global" >
<ui:outputURL
target="_blank"
aura:id="url"
label="TrailheaDX Registration"
value="https://developer.salesforce.com/trailheadx/"/>
</aura:component>

2. navigate to sales home page. select edit page→ drag trailheaDX from custom components → click save and activate page.
3.Go on case - create a new action. give name - “UpsellCrosssellOpportunity”→ select lightning component createOppty already there in org.
User-added image

4 - Create a lightning report , select report type CAMPAIGNS WITH INFLUENCED OPPORTUNITIES and give your report name -Campaign Influence Lightning.
User-added image
5. Create a new link on campaign object → name ---> View Lightning Campaign Influence Report.


6.Replace 00O7F0000041GvO with your report id.
7. Add this link on campaign page layout→ click save


But, unfortunately this also does not work for me. I response to the support and get in touch with you again if I found a possible solution.



Best regards,
Christian
Platinum Trade 10Platinum Trade 10
Christian, similar problem with me !
Grant WalkerGrant Walker
Can't believe it. Right near end of this lengthy superbadge and just can't pass the the very final step. Getting error:

Challenge Not yet complete... here's what's wrong: 
The View Lightning Campaign Influence Report link must be included in the Campaign page layout.


Double checked that the new button is called View_Lightning_Campaign_Influence_Report and that it's on the page layout. Deleted and recreated button and added back onto page layout of my only Campaigns page layout and it's still not working. Pretty sure my button URL format is fine, because it encounters a different error if I change it to something wrong. Seems to just be a weird one around having the tester see it on the page layout. Anyone able to help?
Grant WalkerGrant Walker
Solved it. I'd always assumed the Campaign Influence solution should be a button (which feels more Lightning'esque to me), but it turns out it has to be a Detail Page Link. And in hindsight there is a clue in the trail text. #SuperbadgePass
Kumaresan S 5Kumaresan S 5
I'm getting this issue: Challenge Not yet complete... here's what's wrong:
Your quick action doesn't use the required Lightning component. 
Smita HodiggeriSmita Hodiggeri
User-added image

Got the badge. Tip for people getting stuck at challenge 8, use different playground to get past that hurdle and unlock remaining part of the challenge(Just need to recreate users and make sure they are knowledge user and permissions to knowledge at profile are taken care of.) The last challenge in a nutshell is, just create a LWC and a related action followed by a report and detail link and Boom! #GoodatGoogling
Shahnawaz ShariffShahnawaz Shariff
I am stuck at the final stage with gthe same dreaded error "The View Lightning Campaign Influence Report link on the Campaign object must use a relative URL and dynamic filter values."

Has the relative url changed again? I am using /lightning/r/Report/00O4L000000LEs8UAG/view?fv0={!Campaign.Id}