title: Approval / Reject functionality on custom buttons of object
body: <p>I am trying to implement the functionality of having the approve and reject buttons on custom button in the object.</p>
  
  <p>I have 2 questions</p>
  
  <ol>
  <li>Can we call apex method from a custom button?</li>
  <li>How can we mimic the approval / reject functionality in apex class?</li>
  </ol>
  
  <p>thanks</p>