How to Trigger an API Call When a User Clicks a Button in Action Center?

I’m working on a workflow where I need to trigger an API call when a user clicks a button in Action Center. Here’s the scenario:

  1. I’ve created a task in Action Center using the Create Form activity.
  2. The form contains a button, and when the user clicks it, I want to send a request to a specific API endpoint (e.g., a REST API).

Questions:

  1. Is there a way to directly trigger an API call upon button click in Action Center?
  2. If not, how can I implement a solution where:
  • The button click updates a form field or triggers a submission.
  • The workflow listens for the form submission and then makes the API call?
  1. Are there best practices for passing form data to the API payload?

Any guidance or examples on how to achieve this would be really helpful.

Thank you!

@saikrishna.kakkat,

You will have to design a bot to create action centre item and to do API call once user clicks on approve or reject etc.

How can i make the API call from the form?
I tried through javascript but it didn’t work