Activities
latest
false
Banner background image
Classic Integrations Activities
Last updated Mar 22, 2024

Get Report

UiPath.Workday.Activities.GetReport

The Get Report activity uses the SOAP based Reports as a Service (RaaS) 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 steps.
  2. Add the 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 properties.
    • The request is sent to Reports as a Service (RaaS).
    • The operation returns the DataTable, String, and ResponseStatus values to your output property variables.


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 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.
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 guide.



  • How it works
  • Properties
  • Example

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.