Web Development Archives - Page 2 of 2 - Insurance Software development

ACORD Forms autofill

Author - Webner

We get this request from a lot of clients in US insurance industry who want to generate ACORD forms automatically, means they want data of corresponding insurance Policy and other objects filled automatically in the editable ACORD PDF. Most of the clients have their data in a CRM system like Salesforce, and some clients have this data in a database. What users ideally want is to select an ACORD form number and click a button corresponding to a Policy, Vehicle, Account or some other related object, which should trigger the code that retrieves the data to fill and auto populates […]

Salesforce | System.VisualforceException: Getting content from within triggers not supported

Author - Webner
5:41 am
1 Comment
| |

Problem: System.VisualforceException: Getting content from within triggers is currently not supported.

Description: This Visualforce exception occurs when we use getContent method in the trigger of sobject.

Here is the code for which we got this exception:

Trigger code:
trigger updateStatus on sobject (before update) {
List List = new List();
for(sobject term : Trigger.new){
sobject oldOpp = Trigger.oldMap.get(term.Id);
if(term.Payment_Status__c ==’Paid’){
Messaging.SingleEmailMessage emailTobeSent = new Messaging.SingleEmailMessage();
PageReference pdf = Page.templateCOI; //Replace attachmentPDF with the page you have rendered as PDF
Attachment attach = new Attachment();
Blob b […]

Website security
Contact Us