I am primarily interested in read operations. Though, I would like to know the conventions for doing CRUD operations on Data Service in C# in general.
Hi @edevries,
In UiPath Data Service, CRUD operations can be performed using C# through the UiPath SDK or by interacting with APIs. Below are the general conventions for each operation:
- Read (Retrieve Data)
Fetch a single record by ID.
Query multiple records using filters.
Example:
var entities =DataService.Query<MyEntity>().Where(e=> e.Status == "Active").ToList();
Regards,
Arivu
These are available in coded workflows?
Hi @edevries
Yes
Authenticate using OAuth2 to obtain a Bearer token.
Set the authorization header with the token in HttpClient.
Send a GET request to retrieve data from the Data Service API.
Send a POST request with a JSON payload to create new records.
Send a PATCH request with the record ID to update existing data.
Send a DELETE request with the record ID to remove data.
Handle API responses and errors properly.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.