I want to pass a 'parent object record id' to a URL which navigates to a 'report of child object records', and the report should be filtered out by the passed parent record Id as parameter. I'm getting the Parent record id in the URL, but the 'Id parameter as filter value' is not getting passed to the respective filter value in report.

I'm getting the Special Price Request Id= ""(i.e blank) instead of the passed filter parameter (i.e PrarentId)

Note: I'm performing this on a community portal page (I don't know if this matters)

Aura Component:


<lightning:button variant="brand" label="Download SPR Items" title="Download SPR Items" class="fontsize" onclick="{!c.openReport}"/>

JS Controller:

openReport : function(component,event,helper){
        var parentId = component.get("v.recordId");
        console.log('recordId ==== '+parentId);
        let reportURL = 'https://*xyz*.force.com/s/report/*reportId*/view?&fv2='+parentId;



enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.