# Fetching data

**URL:** <https://forums.pega.com/t/fetching-data/5535>\
**Category:** General\
**Tags:** java-and-activities, reporting, healthcare-and-life-sciences, 8-6-5, pega-platform, case-management\
**Created:** [December 1, 2023, 12:01pm UTC](https://forums.pega.com/t/fetching-data/5535 "2023-12-01T12:01:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Atmakuri\_Koti\_Raja](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/atmakuri_koti_raja/32/2442_2.png) [@Atmakuri\_Koti\_Raja](https://forums.pega.com/u/Atmakuri_Koti_Raja)\
**Post date:** [December 1, 2023, 12:01pm UTC](https://forums.pega.com/t/fetching-data/5535/1 "2023-12-01T12:01:24Z")

</div>

How to fetch data from report definition in activity and property set the results from the report definition?

---

<div class="post-metadata">

**Author:** ![BhanuPrakash\_G](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@BhanuPrakash\_G](https://forums.pega.com/u/BhanuPrakash_G)\
**Post date:** [December 1, 2023, 12:28pm UTC](https://forums.pega.com/t/fetching-data/5535/2 "2023-12-01T12:28:59Z")

</div>

@KotiR16754433 You can make use of pxCallRetrieveReportData activity but i would suggest to make of datapage with source as report definition

---

<div class="post-metadata">

**Author:** ![Bhumireddy](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/bhumireddy/32/23248_2.png) [@Bhumireddy](https://forums.pega.com/u/Bhumireddy)\
**Post date:** [December 1, 2023, 12:42pm UTC](https://forums.pega.com/t/fetching-data/5535/3 "2023-12-01T12:42:08Z")

</div>

Hi @KotiR16754433,

You can call the Report Definition in Activity by using the as mentioned below

Call Rule-Obj-Report-Definition.pxRetrieveReportData

Then pass required method parameters and and use property-set.

 ![Report definition.jpg](https://pega1.discourse-cdn.com/pega/original/2X/5/5130d295a7a46b98550818f168b3d0a807153a50.jpeg)

I hope this will help you.

Thanks,

Ashok

---

<div class="post-metadata">

**Author:** ![Atmakuri\_Koti\_Raja](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/atmakuri_koti_raja/32/2442_2.png) [@Atmakuri\_Koti\_Raja](https://forums.pega.com/u/Atmakuri_Koti_Raja)\
**Post date:** [December 1, 2023, 12:54pm UTC](https://forums.pega.com/t/fetching-data/5535/4 "2023-12-01T12:54:46Z")

</div>

@Bhumireddy Thank you,

I will try.

---

<div class="post-metadata">

**Author:** ![Ankush\_Agrawal](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@Ankush\_Agrawal](https://forums.pega.com/u/Ankush_Agrawal)\
**Post date:** [December 1, 2023, 5:24pm UTC](https://forums.pega.com/t/fetching-data/5535/5 "2023-12-01T17:24:12Z")

</div>

@KotiR16754433

We can call the RD in activity by using pxRetrieveReportData, and passing the RD name and class in the parameters .

All the report data will get stored in a default page pyReportContentPage.

You can then use a property-set method to set required value from pyReportContentPage to the property.
