You need to sign in to do that
Don't have an account?
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.
- 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.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();
}
})
Thank You
<li>
target=" _blank"
</li>
It opens the link and gets pass the error
Any Idea how to solve this? I have never used report filters in URL.
I think you got the filters wrong, check the screens below.
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
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.
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.
https://codyenboden-dev-ed.lightning.force.com/one/one.app#/sObject/00O1I000000g8HDUAY/view?fv0="&{!Campaign.Id}
Does this look right?
Your URL needs to be relative and not hard coded the full URL, just take force.com part out from your URL.
<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"
@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}
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
my Url link settings
/one/one.app#/sObject/00O1I000000gMcTUAU/view?&fv0={!Campaign.Name}&fv1={!Campaign.Id}
what page the link leads to when i click on it on the campaign page
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
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!
You need to add target between outputurl and aura attribute tags:
Let me know if you are still facing issue.
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?
Just got the Superbadge. :) You need to follow below steps:
1. Create Quick action in Salesforce classic
2. Add this quick action to Case page layout in Salesforce1 and lightning action
that's it. You are done.
Thanks,
Tushar Mudgal
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.
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_ui_outputURL.htm
View_Lightning_Campaign_Influence_Report
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?
I am geeting error in lightning experience rollout speciallist superbadge
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
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
I am unable to set the Campaign Id to null.
Any other solutions?
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!
Try setting the filter condition in Classic.
Regards,
Shankar
Here you go:
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
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?
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
Did you add the 'DestinationSuccess' component to the 'Utility Bar' of Sales App? Can you see something like the below image?
The issue is with your label. It should be 'Destination Success Registration'. You have given as 'DestinationSuccess'.
Regards,
Shankar
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?
Thank you!!
you are awesome.. i have completed this challenge.. :)
Regards,
Shivam
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
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
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!
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.
Happy to help. Congrats for the superbadge :)
Regards,
Shankar
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.
* Created three new Page Layouts
* 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
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.
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?
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"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.
Good luck, this badge is a tough one!
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.
<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();
}
})
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) {
}
})
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
@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.
Can someone please explain why we need a controller for this case? Thanks!
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.
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:
Report Setup:
"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."
There you can see the link and the report definition, can anyone tell me what is wrong?
thanks
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}
regards
+1 Works for me aswell, wish I scrolled down to the bottom intially xD
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.
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();
}
})
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:
The link opens the lightning report with filters:
My component is:
With all of that I am still getting an error:
/lightning/r/Report/<Report ID>/view?=&fv0={!Campaign.Name}&fv1={!Campaign.Id}
if you opened directly...
If you opened from any campaign record
and the link should be added in page layout for Campaign
Hope this helps !!
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.
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
I am stuck at this error tried several solutions given prior in this thread but nothing worked. Any help would be much appreciated
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?
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.
/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)
@Vaibhav Purohit Congrats!!!
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
and then on the case layouts remove the link URL and override the predefined actions and add the action..
Hi guys!
Could me help solve this issue?
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.
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.
/lightning/r/Report/00O0o00000BssbR/view?=&fv0={!Campaign.Name}&fv1={!Campaign.Id}
It doesn't seem to be anywhere in the requirements...
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.
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 : Assigned this link to the page layout. Done!!
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.
4 - Create a lightning report , select report type CAMPAIGNS WITH INFLUENCED OPPORTUNITIES and give your report name -Campaign Influence Lightning.
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
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?
Your quick action doesn't use the required Lightning component.
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
Has the relative url changed again? I am using /lightning/r/Report/00O4L000000LEs8UAG/view?fv0={!Campaign.Id}