Skip to main content

Quote we have some functionality which creates quote attachment and send the same on the User email. functionality was working fine but after 12th September it is not showing even on quote detail page and neither on the email we receive. Code wise nothing is changed.

 

                pg.getParameters().put('id',QuoteManager.qto.Id);                pg.getParameters().put('mode','pdf');                pg.getParameters().put('userId',UserInfo.getUserId());                system.debug('*********pg.getUrl()*****'+ pg.getUrl());                if(!Test.isRunningTest()){                attach.body = pg.getContent();                system.debug('====Page Content is====='+pg.getContent());                }else{                attach.body = Blob.valueOf('test data');                }                system.debug('&&&&&&&&&&&&&&&&'+ attach.body);                attach.contenttype = 'application/pdf';                system.debug('===Attachment Is==='+attach);                lstCreateAttach.add(attach);                System.debug('***Quote PDF Attachment Added***');

 

Email attachment is giving error Failed to load PDF document

 

 

#Salesforce Developer

1 risposta