1 comment
Most likely, (not the expert coder here), that you'll need to port this into a lightning component.
You can declare your lightning component to be accessible in LEX (Lightning Experience) and then embed your component into the page via App Builder. You cold then build the button inside the component and create the resulting method needed to execute.