Hai Everyone! I’m trying to trigger the UiPath workflow from an external application.
Then I want update the workflows execution status of the particular job in the db of my external application. while trigger the workflow from my application, the status set as pending initially. I want to update the status after sometime of the execution.
Can any one help me to achive this??
To trigger a UiPath workflow from an external application and then update the job execution status in your own database, you need to use the UiPath Orchestrator API (or Automation Cloud API). The general approach is:
1.Start the Job from Your Application
Use the Start Job API to trigger the UiPath process.
Your application will receive a Job ID in the API response.
Store this Job ID in your DB with status = Pending.
2. Poll the Job Status Using Orchestrator API
UiPath does not automatically notify your external app of job completion unless you use webhooks, so the simplest method is polling.
Using the Job ID, call:
GET /jobs/{jobId}
The job will move through statuses such as:
Pending
Running
Successful
Faulted
Stopped
You can check the status every few seconds/minutes and update your DB accordingly.
3. (Better Option) Use UiPath Webhooks
Instead of polling, you can configure Orchestrator Webhooks to notify your application whenever a job status changes.
Steps:
Go to Orchestrator → Tenant → Webhooks
Create a webhook pointing to an endpoint in your external app (e.g., /job-status-update)
Select event: Jobs.Updated
When UiPath updates a job, your endpoint will receive a JSON payload containing:
jobId
process name
new status
start/end time
Your application can update the DB instantly without polling.
4. Update Your Application’s Database
When your app receives the updated status (via polling or webhook), update your DB record for that Job ID:
If job status = Successful → mark as Completed
If job status = Faulted → mark as Failed
If job status = Running → mark as In Progress
Please, kindly let me know if any of the above approaches work, or else send more details regarding the issue.
Yes webhooks are generally supported for community edition but with limitations, please kindly let me know if you want more detailed list on what can webhooks do in community version vs enterprise version