Binding the operation of the workflow to the button

Hello, I'm new to Retool workflow, and I've created a simple flow that retrieves data from the database and returns it in JSON format. I want to link this workflow to a button on the app and run it manually when the button is clicked. However, I haven't been able to figure it out. I tried using webhooks and REST API, but I think I couldn't manage it. I also attempted to run the query directly by selecting it as a Retool workflow from the query screen, but I couldn't succeed in that either. Do you have any suggestions? I want to see the JSON data generated in the workflow in the app. I hope I can achieve this.

1 Like

Running into same issue

Hello, I think I've solved this issue. I couldn't access the data on the application because I forgot to deploy it. To access the processes in the workflow, it is necessary to deploy it first. Afterward, you can add it to your application either through the 'Import Workflow' option in the query window or as a REST API