UiPath is a leader in Robotic Process Automation (RPA), enabling businesses to automate routine tasks with software robots. Their API provides the ability to manage these robots, processes, and queues programmatically. With UiPath's API on Pipedream, you can create sophisticated automation workflows that trigger actions in UiPath as part of broader, cross-application processes. This could involve initiating UiPath jobs based on incoming data from different sources, managing resources, or reacting to events from other applications or services to create a seamless automation ecosystem.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
uipath: {
type: "app",
app: "uipath",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://cloud.uipath.com/${this.uipath.$auth.account_logical_name}/${this.uipath.$auth.tenant_name}/orchestrator_/odata/Users/UiPath.Server.Configuration.OData.GetCurrentUser`,
headers: {
Authorization: `Bearer ${this.uipath.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})
Invoice Processing Automation: Automatically kick off UiPath processes for new invoices received via email. When a new email attachment is detected by an email service like Gmail, Pipedream can trigger a UiPath job to extract data from the invoice for further processing and entry into an ERP system like SAP.
Scheduled Report Generation: Use Pipedream to schedule and trigger UiPath bots to generate and distribute reports. Connect Pipedream to a time-based trigger to initiate UiPath workflows at specific intervals, pulling data from databases or CRM systems such as Salesforce, processing it, and then emailing the compiled reports to relevant stakeholders.
Real-time Slack Notifications for UiPath Job Completion: Set up a workflow on Pipedream where UiPath sends a web hook to signify the completion of a job. Pipedream can then parse this information and send a notification to a Slack channel, keeping the team updated on the status of robotic processes without manual monitoring.
UiPath uses OAuth authentication. When you connect your UiPath account, Pipedream will open a popup window where you can sign into UiPath and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any UiPath API.
Pipedream requests the following authorization scopes when you connect your account:
OR.Assets
OR.Execution
OR.Folders
OR.Machines
OR.Robots
OR.Users
OR.Jobs
OR.Queues
OR.Tasks
offline_access
GET
https://cloud.uipath.com/identity_/connect/authorize
?
client_id={{custom_fields.application_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://cloud.uipath.com/identity_/connect/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.application_id}}
&
client_secret={{custom_fields.application_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://cloud.uipath.com/identity_/connect/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{custom_fields.application_id}}
&
client_secret={{custom_fields.application_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}