# Get Report

> `UiPath.Workday.Activities.GetReport`

`UiPath.Workday.Activities.GetReport`

The **Get Report** activity uses the SOAP based [Reports as a Service (RaaS)](https://doc.workday.com/reader/HAJOEAaClxziA9ljvuBqZA/SyXmXfVCjUOT8xAvvczmng) to retrieve a specified report (**Report URL**).

After retrieving the report, the activity outputs the report in a `DataTable` (**Results**) and/or in its native `String` format (**Results Native**). Additionally, the activity outputs the status of the web service request (success/failure information) in a `ResponseStatus` object (**ResponseStatus**) that you can use in subsequent activities (e.g., conditional logic).

## How it works

The following steps and message sequence diagram is an example of how the activity works from design time (i.e., the activity dependencies and input/output properties) to run time.

1. Complete the [Setup](https://docs.uipath.com/activities/other/latest/legacy-integrations/workday-setup) steps.
2. Add the [Workday Scope](https://docs.uipath.com/activities/other/latest/legacy-integrations/workday-scope) activity to your project.
3. Add the **Get Report** activity inside the **Workday Scope** activity.
4. Click the **Configure** button inside the **Get Report** activity (this opens the **Object Wizard**).
5. Enter the **Report URL** that you want to retrieve.
   * To validate your report URL during design time, click the **Get Report** button to view the results that will be returned at run time.
6. Create and enter `DataTable`, `String`, and `ResponseStatus` variables for the [Output](https://docs.uipath.com/activities/other/latest/legacy-integrations/workday-get-report#get-report) properties.
   * The request is sent to [Reports as a Service (RaaS)](https://doc.workday.com/reader/HAJOEAaClxziA9ljvuBqZA/SyXmXfVCjUOT8xAvvczmng).
   * The operation returns the `DataTable`, `String`, and `ResponseStatus` values to your output property variables.

     ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-183273-180be1f6-0fafbb5d.webp)

### In the Body of the Activity

To enter your **Get Report** property values, you must use the **Object Wizard** by clicking the **Configure** button.

To learn more about the **Object Wizard**, see the [Business Activity Frameworks](https://docs.uipath.com/integrations/docs/business-activity-framework) page.

## Properties

### Common

* **DisplayName** - The display name of the activity. This field supports only `Strings` or `String` variables.

### Input

* **ReportURL** - The URL of the report that you want to retrieve. Enter a `String` or `String` variable. To validate your URL during design time, click the **Configure** button, enter your **Report URL**, and click **Get Report** to view the results that will be returned at run time.
  + For more information, see [Accessing RaaS Output](https://doc.workday.com/reader/HAJOEAaClxziA9ljvuBqZA/cjMlFbSGp~9mgTRwXmnWMQ) in the Workday documentation.

### Misc

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.

### Output

* **ResponseStatus** - The status of the request (success/failure information). Enter a `ResponseStatus` variable (*UiPath.BAF.Models.ResponseStatus*). The `ResponseStatus` object includes three properties that you can use in other activities.
  + **Success** - `Boolean` - Specifies whether the API request was successful.
  + **ErrorCode** - `String` - The response error if the API request is unsuccessful (**Success**=*False*).
  + **Message** - `String` - The error message.
* **Results** - The retrieved report returned in a `DataTable` object. Enter a `DataTable` variable. This property is not applicable if the **ReportURL** value specifies one of the following report formats (e.g., *.../service/systemreport2/uipath_dpt1/Worker_Details?*format=gdata):csv, gdata, json, rss, simpelxml.
  + If the **ReportURL** includes one of the formats above, use the **ResultsNative** property.
  + During design time, the **Object Wizard** will always display the report in a table format, regardless of the specified format type.
* **ResultsNative** - The native format of the report returned in a `String` object. Enter a `String` variable. If the **ReportURL** value specifies one of the following report formats, the results are returned as a `String` according to the list below (e.g., *.../service/systemreport2/uipath_dpt1/Worker_Details?*format=gdata):
  + csv, the results are returned as a `String` accordingly:
  + csv - comma separated string
  + gdata - json string in gdata format
  + json - json string
  + rss - normal xml string
  + simplexml - simplified xml string
    :::note
    During design time, the **Object Wizard** will always display the report in a table format, regardless of the specified format type.
    :::

## Example

The following image shows an example of the activity dependency relationship and input/output property values.

For step-by-step instructions and examples, see the [Quickstart](https://docs.uipath.com/activities/other/latest/legacy-integrations/workday-quickstarts) guide.

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