You need to sign in to do that
Don't have an account?

regarding api call from trigger
hi,
can we call an api function inside trigger?
for eg. i create a class and use api calls there and call that class inside trigger.
please help me out.
thanks,
mahi
Are you asking if you can call a class from a trigger?
If so, then yes. If not, please explain what you are asking in greater detail.
Code:
messages[0] = new SingleEmailMessage();
messages[0].setBccAddresses(new String[] {"jdoe@acme.com", "jdoe@merce.com" });
messages[0].setCcAddresses(new String[] {"jdoe@gmail.com", "jdoe@salesforce.com" } );
messages[0].setBccSender(true);
messages[0].setEmailPriority(EmailPriority.High);
messages[0].setReplyTo("dcarroll@salesforce.com");
messages[0].setSaveAsActivity(true);
messages[0].setSubject("This is how you use the sendEmail call.");
so i am not able to figure out what is the problem?
thanks,
mahi
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
from page 131, of the doc (it's cool to read the doc, really)
i have this in the top of my bookmarks
http://www.salesforce.com/us/developer/docs/apexcode/salesforce_apex_language_reference.pdf