[SalesForce] How to do a javascript button in Lightning

We depend on a javascript button to allow our salesforce screens to interact with another web application. We read some elements from the salesforce contact, and then call a js func hosted on another web site to pass that contact info to the other web site. The js func has a call back, so when the other web site is finished, our js in salesforce can save some data to the salesforce contact.

But…. as lightning lacks javascript buttons, we have been locked out of lightning.

I just found this: https://developer.salesforce.com/blogs/developer-relations/2016/09/why-its-time-to-break-up-with-javascript-buttons-and-embrace-lightning.html

But it is not clear: Can I do a javascript button now in lightning, or do I still need to wait for more pieces from salesforce?

We would love to have a path forward with lightning.

Best Answer

You can build a quick actions for lightning components .The quick actions can be a way to replace your JavaScript buttons for lightning experience .

Quick actions are lightning components that can use aura enabled apex to make external callouts via apex.

Related Topic