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

list view button to invoke webservice call?
I have requirement to create a list view button on Accountcert object. That button just need to call the webservice method. this is my requirement.
that method need to pass parameters. how could i achieve this? this need to support in lightning as well
that method need to pass parameters. how could i achieve this? this need to support in lightning as well
Or you can do it using Visualforce controller or lightning component also
http://www.infallibletechie.com/2012/10/calling-apex-method-from-custom-buttom.html
http://blog.shivanathd.com/2014/07/call-apex-class-from-custom-button-salesforce.html
https://andyinthecloud.com/2013/07/16/how-to-call-apex-code-from-a-custom-button/
https://www.greytrix.com/blogs/salesforce/2014/09/24/consuming-external-web-service-in-apex/
https://www.greytrix.com/blogs/salesforce/2014/09/24/create-button-for-list-view/
http://sfdcsrini.blogspot.com/2014/11/custom-salesforce-button-to-execute.html
http://sfdcmonkey.com/2017/04/16/add-lightning-component-lightning-action/
Here is an example of how that is done: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_sosc_custom_button.htm
You can have the Visualforce page's controller extension to call the webservice upon page load. The selected record id's can be obtained by the StandardSetController passed in to the extensions constructor.
var myquery = "SELECT id from CertTask__c Where Cern__c="+selectedLeads[0] ;
What you can do in tie a list view button to a visualforce page with a list view controller. When the list view button is pressed, the selected records are passed to the visualforce page as parameters. The visualforce list view controller extension can be used to retrieve those selected records and make the callout.