How can I add link to the report that opens up a portal report using pp!id?

I have been able to create a tempo report based on below link.
forum.appian.com/.../Task_Report_Tutorial.html
Instead of using a task report, I am using a process portal report. How can I add link to the report that opens up a portal report using pp!id? In process portal report, I am using Other Report (Link to) and pp!id (Filter value) to create this link. In other words, how can I modify below code to open a process based portal report?

with(
local!columnData: index(ri!data, ri!columnConfig.field, {}),
local!columnDataCount: count(local!columnData),
a!gridTextColumn(
label: ri!columnConfig.label,
field: ri!columnConfig.field,
data: if(
local!columnDataCount > 0,
apply(
rule!displayTextCell(data: local!columnData, index: _),
1 + enumerate(local!columnDataCount)
),
{}
),
links: if(
ri!columnConfig.configuredDrilldown = "TASK_DETAILS",
apply(
a...

OriginalPostID-157597

OriginalPostID-157597

  Discussion posts and replies are publicly visible