Happy Business Starts Here

Ability to View Invoice PDF in Force.com Sites

mkarun
Newly Enrolled

Ability to View Invoice PDF in Force.com Sites

Hi,

 

I want the ability to View Invoice PDF in force.com sites. I tried exposing the ViewInvoicePDF page in sites and tried to access it. I am getting the error "Need to specify a valid ZInvoice__c sObject as standard controller."

My sites URL is something like this "<site domain>/<site name>/Zuora__viewInvoicePdf?id=XXXXXXXXXXXXX&viewInline=true"

 

This would be a great option for the customers to see their paid/unpaid invoices.