Skip to main content
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,

 
3 réponses
  1. 16 janv. 2017, 06:45
    hi Shweta Garg 

    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