# Quickstart - Get Report

> The purpose of this guide is to help you create a working sample that uses the Workday [Get Report](https://docs.uipath.com/activities/other/latest/legacy-integrations/workday-get-report) activity.

## Overview

The purpose of this guide is to help you create a working sample that uses the Workday [Get Report](https://docs.uipath.com/activities/other/latest/legacy-integrations/workday-get-report) activity.

This working sample enables you to quickly verify the connection to your Workday tenant and get familiar with the activity's input/output datatypes.

After completing the steps in this guide, you'll have an automation sequence that does the following:

1. Establishes a connection to your Workday tenant ( and [Workday Scope](https://docs.uipath.com/activities/other/latest/legacy-integrations/workday-scope)).
2. Retrieves a report from your Workday tenant ([Get Report](https://docs.uipath.com/activities/other/latest/legacy-integrations/workday-get-report)).

## Prerequisites

Before you begin:

1. Complete the Workday [Setup](https://docs.uipath.com/activities/other/latest/legacy-integrations/workday-setup) steps.
2. An existing Workday report URL. For more information, see [Accessing RaaS Output](https://doc.workday.com/reader/HAJOEAaClxziA9ljvuBqZA/cjMlFbSGp~9mgTRwXmnWMQ) in the Workday documentation.

## Steps

### Build your project

1. Add a activity.
2. Enter the **AssetName** for the credential asset you created (during the **Setup**) for the application **Client Secret** (e.g., *"WorkdayUsernamePassword"*).
3. Create and enter a `SecureString` variable for the **Password** property (e.g., *password*).
4. Create and enter a `String` variable for the **Username** property (e.g, *username*).
5. Add the [Workday Scope](https://docs.uipath.com/activities/other/latest/legacy-integrations/workday-scope) activity after the **Get Credential** activity.
6. Click the **Configure** button (this opens the **Connection Wizard**), enter your Workday credentials, and click the **Connect** button. For more information about the purpose and behavior of this wizard, see the section.
   * This step is for design time purposes only. To populate the **Workday Scope** properties, continue to complete the steps below.
7. In the **Username** property, enter the `String` variable you created for the **Get Credential** activity or substep above (e.g., *username*).
8. In the **Password** property, enter the `SecureString` variable you created for the **Get Credential** activity (e.g., *password*).
9. In the **Tenant** property, create and enter a `String` variable for your tenant (e.g., *tenant*).
10. In the **TenantURL** property, create and enter a `String` variable for the URL (e.g._tenantURL).
11. Add the [Get Report](https://docs.uipath.com/activities/other/latest/legacy-integrations/workday-get-report) activity inside the **Workday Scope** activity.
    1. Click the **Configure** button (this opens the **Object Wizard**) and enter your **ReportURL**.
    2. Click the **Get Report** button to preview the results and then click **Done**.
    3. In the **ResponseStatus** property, create and enter a `ResponseStatus` variable (e.g., *responseStatus*).
    4. In the **Results Native** property, create and enter a `String` variable (e.g., *nativeResults*).
12. Add an **If** activity after the **Get Report** activity.
    1. In the **Condition** property, enter the following *responseStatus.Success.ToString()="True"*.
    2. In the **Then** statement box, add a**Write Line** activity and enter the variable you created for the **Results Native** property (e.g., *nativeResults*).
    3. In the **Else** statement box, add a**Write Line** activity and enter the following **Text**: *"Failed:\nErrorCode:"+responseStatus.ErrorCode+"\nError Message:"+responseStatus.Message*.
13. Click **Run** and verify the **Output** window includes the expected write line values.

    ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-183937-e1df4a52-61710b7f.webp)

You're done!

To learn more about the Workday activities (including example property inputs/outputs), see the [Activities](https://docs.uipath.com/activities/other/latest/legacy-integrations/workday-activities-classic) page for a complete activity list and links to the activity detail pages.
