I have added a custom button on custom entity next to SAVE and CANCEL.
On the click of custom button i want to pick some value from the FORM and want to send it to one of the custom exposed method. this call should go through the sugar server so that we do not face CORS issue.
Similar thing I have done on the click of SAVE button and our business logic is inside logic hooks.
Now i want to call the same custom method from the custom button how can i achieve it.
What is right way to achieve it.
Thanks in advance.