+ Start a Discussion
osamanosaman 

SingleEmailMessage limitation on Quote object

Hi,

 

I have ran into a weird situation. I have developed a visualforce email template which pulls account, contact, opportunity and quote information. The email is sent on a field update using a time based workflow.

 

The problem is the email is getting sent if I manually update the quote within salesforce but the email is not getting sent when a portal user updates the quote using customer portal. The controller has "without sharing" token. 

 

The SingleEmailMessage documentation says that WhatId cannot have QuoteId in it but it works if it is executed within salesforce but doesnt work for the portal user.

 

Can some one provide me with the correct information?

 

Thanks in advance.

osamanosaman

I think its happening becaue EmailTemplate object is not accessible to Customer Portal users. Any workaround?