You need to sign in to do that
Don't have an account?
Shweta Garg
navigate to the url on clicking custom button in Lightning
Hello All,
I am having one requirement. I just want to navigate to the URL on clicking button In Lightning experience using quick actions,global actions or custom button Url either. Is thery any way through which i can achive this.
Please help me.
thanks,
I am having one requirement. I just want to navigate to the URL on clicking button In Lightning experience using quick actions,global actions or custom button Url either. Is thery any way through which i can achive this.
Please help me.
thanks,
Please click the below links.which has a document to "navigateToURL"
1) https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_force_navigateToURL.htm
And we also have a module in trailhead to create a custom button to navigate to URL. Please check the video in below link.
https://trailhead.salesforce.com/en/customizing_user_interface/ui_nav_buttons_links
Please feel free to contact me if you need any further information.
Thanks and Regards
RahulKumar
Thanks for responding. I need to use that button on detail Page of an object separately. button is not on Lightning component else on detail page of an object. Custom URl button does not work in lightning experience. any idea to implement it with quick actions?
Thanks,
you can do this task by using Quick Action, first create a lightning component with implements="force:lightningQuickActionWithoutHeader,force:hasRecordId" interface and then add this lightning component with quick action .
when you click on the quick action button ,on the load of the component you can navigate to URL by using force:navigateToURL event.
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_force_navigateToURL.htm (http://https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_force_navigateToURL.htm)
https://trailhead.salesforce.com/lex_javascript_button_migration/javascript_buttons_to_lightning_actions
let me inform if it helps you .
thanks
http://sfdcmonkey.com