Generate quote PDF & invoice PDF not working in Salesforce

Modified on: Mon, 5 Feb, 2024 at 7:46 PM

Scope :

Generate Quote PDF not working in Salesforce.

Generate invoice PDF not working in Salesforce.


Summary:

Once the quote is created and the PDF is created through Chargebee actions, the PDF is not generated in the notes and attachments section in Salesforce. The Invoice PDF is also not getting generated using Chargebee action - “Invoice PDF”. 

Solution:

For the quotes to be generated and the invoice PDF to be downloaded in Salesforce we have a remote site setting in Salesforce which is necessary as it allows the Chargebee S3 File access in Salesforce.

 

AwqeeX2DV9m-xqHRUBlk_um6Uwi4rEf_eMK5-PazyFMjYVLXjWSZUMLxPzHcfU6HTsVH7F-kmHz6B8IHYNDDYJC9ELcpvQTo_p6sjl8mo8-LnkYSIX0tc5fJvkFHp7234ffJzjN8WsQl9SI1-7MRENA

If the issue mentioned above occurs, make sure to check the below.

Click on the Quick Find box in Salesforce>> Search Remote site Settings>> check if the CB_S3fileaccess is present(the one shown in screenshot)

 

 

Create a new Remote site setting entry and give the details as shown in the screenshot above. The Remote site URL can be picked up from the error messages highlighted below.

 

First error: Unauthorized endpoint, please check Setup->Security->Remote site settings. endpoint = https://cb-prod-ap-se2-downloads.s3.ap-southeast-2.amazonaws.com/optimalworkshop-test/quote/cb_testquote_B8Opu2TvBesBY4DR.pdf?response-content-dispositio…

 

After the remote site setting is added, they can generate the quote PDF again and confirm.

 

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.
×