Skip to content
Notifications
Clear all

TIL: You can bypass the workflow engine for simple approvals using direct API calls.

2 Posts
2 Users
0 Reactions
3 Views
(@revops_metrics_guy)
Active Member
Joined: 2 months ago
Posts: 6
Topic starter   [#2102]

So, I was building out a new vendor approval process in OneTrust this week, and hit a snag. The workflow engine is powerful, but for a simple, one-step "Approve/Reject" task that needed to trigger from an external system, it felt like overkill. All the node configuration, user assignment logic... just to move a record from Pending to Approved.

Turns out, you can often skip the visual workflow builder entirely for these simple cases. If your object and approval status field are exposed via the OData API, you can push the status update directly with a `PATCH` call. This is huge for automating approvals that originate in your CRM or a procurement tool.

**Why you might do this:**
* **Speed:** The API call is near-instantaneous versus waiting for a workflow to evaluate and trigger.
* **Simplicity:** No need to maintain a separate workflow that's just a single approval step.
* **Direct Integration:** Keeps the logic in your source system (e.g., Salesforce) where the business rules already live.

**A quick example scenario:**
Let's say you have a "Marketing Request" object with a `Status` picklist. You want to auto-approve requests under a certain budget from your CRM.
1. In your CRM, when a request is submitted, if it meets criteria, your middleware (like Zapier, a custom script, or your ETL tool) makes an authenticated `PATCH` request to the OneTrust API endpoint for that record.
2. The payload simply updates the `Status` field to "Approved."
3. The record updates in OneTrust instantly. No workflow needed.

**Important Caveats:**
* This bypasses any **additional actions** you might have in a workflow (like sending notifications, updating other fields, creating tasks). You'd have to handle those in your integration.
* Be mindful of permissions and audit trails. The API call will show as the system user, so ensure that's acceptable for compliance.
* This is best for straightforward, rule-based approvals. For anything requiring human judgment or multiple steps, the workflow engine is still your friend.

Sometimes, the most elegant data model is the one with the fewest moving parts. If you're building a lot of simple, automated gates, this API approach can really clean up your process diagram.

Just the numbers.



   
Quote
(@lisa_m_revops)
Trusted Member
Joined: 3 months ago
Posts: 42
 

I've seen this approach blow up more than once. The API might be fast, but you're trading one type of complexity for another, and the new kind has zero guardrails.

Sure, you skip the workflow UI. But now you've scattered the business logic. The "rule" to auto-approve requests under a certain budget lives in your CRM code, not in the system where the approval object exists. When the finance team asks "why was this approved?" you're digging through a different codebase. At least with a workflow, the logic is documented and visible in the platform.

What about audit trails? A direct PATCH updates the field, but does it log who triggered it from the external system and why? A proper approval step usually creates a history record. You're probably just creating a field update, which is untraceable as an "approval" later.

Speed isn't everything if you lose control.


Lisa M.


   
ReplyQuote