I am using a solution as indicated by this link https://automationchampion.com/2021/10/05/generating-a-quote-pdf-using-salesforce-flow/ to generate PDF for Quotes in a flow. The flow is referenced by a public page in Experience Builder so I gave the Guest User access Read and Create access to all objects and their fields, including Opportunities and Quotes. I also gave the Guest User access to the Apex class referenced in the link. For some reason though, the flow still won't generate the Quote PDF in the Quote record (no I did not forget to create the Quote record and yes the Quote record is tied to an Opportunity record). I wonder if there is anything wrong with the code I'm using. Here is the code: https://github.com/Rakeshistom/Auto-Generates-Quote-PDF. The class is generateQuotePdfDocument.cls.
@Zack Terry @Alan McQueen So I checked out the debug log it apparently stopped executing after line 29 (I'm referring to the lines in the code in the link under the generateQuotePdfDocument class). Here is the link to the code again: https://github.com/Rakeshistom/Auto-Generates-Quote-PDF/blob/master/generateQuotePdfDocument.cls. The debug log in the said there is some Internal Salesforce Error which I dont know what that means specifically. I then went to check Apex Job and found one referring to this class and I got this error: First error: [UNKNOWN_EXCEPTION] Exception core.apexpages.exceptions.ApexPagesHandledException.
What does all of this mean?