You need to sign in to do that
Don't have an account?

URL not found
My lex component
controller:
when i have clicked on the lightning button from record page I got a error 'URL doesn't exist".
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId"> <lightning:button label="PDF" onclick ="{!c.handleClick}"/> <aura:attribute name="recordId" type="String"/> </aura:component>
controller:
({ handleClick : function(component, event, helper) { var recId = component.get('v.recordId'); var retURL = component.get('v.pdf'); retURL = window.open("apex/TTDLetter?recordId="+recordID); } })
when i have clicked on the lightning button from record page I got a error 'URL doesn't exist".
SFDC 18 - There could be several reasons. You can already look into solved thread.
https://success.salesforce.com/answers?id=9063A000000iiAfQAI
Let me know if it helped you