Update approval status and notify via API

API toolDatabaseMarketingRecipe Tools

What it does

When a new API request arrives, this automation updates the approval status in SQL Server. Someone receives an email notification based on whether the request was approved or denied.

Who it's for

Operations teams who need to process approval requests through an API without manual database updates.

How teams use this

Process approval requests in real time

Route API requests directly to SQL Server and send approval or denial emails without manual intervention. The team stays informed as requests are processed.

Integrate with an external approval system

Connect an external application to this API so approval decisions flow into SQL Server and notify the right people. Only the API source changes.

Add custom email templates for each status

Include separate email templates for approved and denied requests so recipients see status-specific details. Set different message content based on the approval outcome.

How it works

  1. Receive the API request. A new API request arrives with approval status data. The automation defines the request and response parameters for this endpoint.
  2. Update the approval status. Update rows in the uam.Test_RoofData table in SQL Server with the approval status from the API request.
  3. Check the approval outcome. Select rows from the uam.Test_RoofData table in SQL Server to retrieve the Approve_Deny_Status value and determine which email to send.
  4. Notify on approval or denial. Send an email via Workato Api Platform when the status equals 1 for approval or equals 0 for denial, so someone knows the outcome immediately.