apps
latest
false
- Getting Started
- Demo apps
- How To
- Notifications
- Using VB Expressions
- Designing your App
- Designing your App with Autopilot
- Events and Rules
- Rule: If-Then-Else
- Rule: Open a Page
- Rule: Open URL
- Rule: Close Pop-Over/Bottom Sheet
- Rule: Show Message
- Rule: Show/Hide Spinner
- Rule: Set Value
- Rule: Start Process
- Rule: Reset Values
- Rule: Upload File to Storage Bucket
- Rule: Download File From Storage Bucket
- Rule: Create Entity Record
- Rule: Update Entity Record
- Rule: Delete Entity Record
- Rule: Add to Queue
- Rule: Trigger workflow
- Rule: Submit Action
- Leveraging RPA in your App
- Leveraging Entities in Your App
- Leveraging Queues in Your App
- Leveraging Media in your app
- Leveraging Actions in your app
- Leveraging Connections in your apps
- Web apps in Studio Web
- Application Lifecycle Management (ALM)
- UiPath® First-Party Apps
- Basic Troubleshooting Guide
Using the Fetch functions
Apps User Guide
Last updated Nov 15, 2024
Using the Fetch functions
The following are two examples of how to apply the Fetch and FetchOne functions in practice.
Use the Fetch function to retrieve all entity records from a Data Service entity, in conjunction with a tabular control such as Edit Grid.
- Add an entity to your app:
- Select Add any.
- Select Entity.
- Select a tenant.
- Select the entity you want to add to your app, then Add.
- Add an Edit Grid control to your app:
- Select Add control.
- Select Display.
- Select Edit Grid, and drag it to an area in your app.
- Bind the Edit Grid control to your entity:
- In the Properties panel, on the General tab, select the Additional resources button adjacent to Data source.
- Select Query builder.
- Select the entity you want to use, then Save. The system automatically prepares a
Fetch
VB expression.
- Preview or run your app.
When you preview your app, the Edit Grid control is populated with all of the records from your entity.
Use the FetchOne function to retrieve a single record from a Data Service entity and use it in display controls, such as the Label control, in your apps.
- Add an entity to your app:
- Select Add any.
- Select Entity.
- Select a tenant.
- Select the entity you want to add to your app, then Add.
- Add a Label to your app:
- Select Add control.
- Select Display.
- Select Label, and drag it to an area in your app.
- Add a variable to your app:
- Select Add any.
- Select Variable.
- Give your variable a name.
- Under Type, select your entity, then Save.
- Add a rule to the main page of your app:
- Select the main page of your app.
- In the Properties panel, select Events.
- Under Loaded, select Create rule.
- Bind the rule to your variable:
- Select Set value.
- Under Item to set, select the variable you added in step 3.
- Select Value, then Query builder.
- Select your entity, then Save. The system automatically prepares a
Fetch
VB expression. - Under Value, select the expression, then replace
Fetch
withFetchOne
.
- Bind the Label to the variable:
- Preview or run your app.
When you run the app, the Label is automatically populated with a single record from the entity field you specified.