# How to pass a single page property as parameter to When rule called in a data transform?

**URL:** <https://forums.pega.com/t/how-to-pass-a-single-page-property-as-parameter-to-when-rule-called-in-a-data-transform/3766>\
**Category:** Blueprint and App Design\
**Tags:** low-code-app-development, 8-6-5, system-architect, case-management\
**Created:** [January 10, 2023, 8:02am UTC](https://forums.pega.com/t/how-to-pass-a-single-page-property-as-parameter-to-when-rule-called-in-a-data-transform/3766 "2023-01-10T08:02:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![SandyP16637557](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@SandyP16637557](https://forums.pega.com/u/SandyP16637557)\
**Post date:** [January 10, 2023, 8:02am UTC](https://forums.pega.com/t/how-to-pass-a-single-page-property-as-parameter-to-when-rule-called-in-a-data-transform/3766/1 "2023-01-10T08:02:57Z")

</div>

I have a single data page property, and would like to refer one of the property from it.

I would like to refer the property as parameter in a when rule called in a data transform.

After setting PageData as parameter in parameter tab, how can i use it as parameter in when rule in a step of a data transform?

I tried using Param.PageData.CurrencyCode but failed.

(Currency code as the property i would like to refer from a single page which is stored in the page after customer input)

 ![Error.png](https://pega1.discourse-cdn.com/pega/original/3X/4/d/4d109c10b7eb436ad5413c4307c50cafbf56758b.png)

---

<div class="post-metadata">

**Author:** ![Balasubramaniam](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@Balasubramaniam](https://forums.pega.com/u/Balasubramaniam)\
**Post date:** [January 10, 2023, 9:45am UTC](https://forums.pega.com/t/how-to-pass-a-single-page-property-as-parameter-to-when-rule-called-in-a-data-transform/3766/2 "2023-01-10T09:45:23Z")

</div>

@SandyP16637557 ,

Have you tried by defining the PageData in the Pages & Classes tab with relevant class?Please try once and let us know if it helps.

---

<div class="post-metadata">

**Author:** ![mrits1](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/mrits1/32/12113_2.png) [@mrits1](https://forums.pega.com/u/mrits1)\
**Post date:** [January 10, 2023, 10:07am UTC](https://forums.pega.com/t/how-to-pass-a-single-page-property-as-parameter-to-when-rule-called-in-a-data-transform/3766/3 "2023-01-10T10:07:28Z")

</div>

@SandyP16637557 It should be PageData.CurrencyCode Can you try like this and let us know

---

<div class="post-metadata">

**Author:** ![SandyP16637557](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@SandyP16637557](https://forums.pega.com/u/SandyP16637557)\
**Post date:** [January 11, 2023, 2:02am UTC](https://forums.pega.com/t/how-to-pass-a-single-page-property-as-parameter-to-when-rule-called-in-a-data-transform/3766/4 "2023-01-11T02:02:58Z")

</div>

@SrinidhiM It doesnt work sorry

---

<div class="post-metadata">

**Author:** ![mrits1](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/mrits1/32/12113_2.png) [@mrits1](https://forums.pega.com/u/mrits1)\
**Post date:** [January 11, 2023, 6:32am UTC](https://forums.pega.com/t/how-to-pass-a-single-page-property-as-parameter-to-when-rule-called-in-a-data-transform/3766/5 "2023-01-11T06:32:58Z")

</div>

@SandyP16637557 Hi, Can you check if you have added the PageData in pages and classes and in parameters tab?

---

<div class="post-metadata">

**Author:** ![Jananee\_Kalaichelvan](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@Jananee\_Kalaichelvan](https://forums.pega.com/u/Jananee_Kalaichelvan)\
**Post date:** [January 11, 2023, 7:40am UTC](https://forums.pega.com/t/how-to-pass-a-single-page-property-as-parameter-to-when-rule-called-in-a-data-transform/3766/6 "2023-01-11T07:40:48Z")

</div>

Hi @SandyP16637557,

Please define the below steps,

1. In the pages and classes tab, define PageData using the appropriate class.

2. Assume that Param.CurrencyCode is the parameter that you defined in the when rule. then add a property set step mentioned below, before calling the when rule in the data transform.

Param.CurrencyCode == PageData.CurrencyCode

The values for the param page will be automatically passed to the when rule. If it still doesn’t work, make sure the tracer is running while the data transform is being applied and that the value for CurrencyCode is present on the PageData page.

---

<div class="post-metadata">

**Author:** ![PoojaM0216](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/poojam0216/32/1327_2.png) [@PoojaM0216](https://forums.pega.com/u/PoojaM0216)\
**Post date:** [January 11, 2023, 2:54pm UTC](https://forums.pega.com/t/how-to-pass-a-single-page-property-as-parameter-to-when-rule-called-in-a-data-transform/3766/7 "2023-01-11T14:54:22Z")

</div>

Hi @SandyP16637557,

please check if you have declared PageData parameter as Page Name (data type) in parameter tab.

If yes then, Can you please post error after using PageData.CurrencyCode?

Thanks,

Pooja

---

<div class="post-metadata">

**Author:** ![mrits1](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/mrits1/32/12113_2.png) [@mrits1](https://forums.pega.com/u/mrits1)\
**Post date:** [January 12, 2023, 7:55am UTC](https://forums.pega.com/t/how-to-pass-a-single-page-property-as-parameter-to-when-rule-called-in-a-data-transform/3766/8 "2023-01-12T07:55:34Z")

</div>

@SandyP16637557 Hi, Please check the below link which is a similar query.

[Param](https://support.pega.com/question/how-use-page-parameter-data-transform)

Please let us know if this is helpful
