Get a name of a page received as parameter

Hi , consider below scenario:

Both A B are data transforms

B requires a parameter, named “P”, : type ‘Page name’. “P” is also defined under “Pages & Class” table.

A call B with parameter value “pyWorkPage.Page1”, where Page1 is a page defined under pyWorkPage.

Inside B we can use P.xxx to access properties inside P normally.

Now we need use page name of P inside B, which is a string like “pyWorkPage.Page1” in above sample.

As “P” is a page, we can not use it as a string to get “pyWorkPage.Page1”.

We have to add one more parameter of type string to B and let A call B with 2nd para “pyWorkPage.Page1”, which looks exactly same as first para, but in diff type.

So, may I know how can I get page name of P inside B? If I can do it, 2nd para is not needed.

I fail to find function for this purpose.

Thanks.

@MaxonL16591286 : Not sure on the business case. Once the page is passed as parameter, you should be able to access all the values in the page as you mentioned. Still if you want to know the name of the page which is passed as parameter, please try to use the function @getPageReferenceAsString(). Note that residing on the name of the page in your second data transform is against your design of parameterisation.

Thanks.

@ArulDevan

Hello, @getPageReferenceAsString() works as expected, many thanks!