function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage(); email.setHtmlBody('System Overview Resport attached'); email.setToAddresses(new string[]{'root@eruditorum.org'}); email.setSubject('System Overview Report'); Messaging.EmailFileAttachment efa = new Messaging.EmailFileAttachment(); efa.setFileName('systemOverview.pdf'); string partialURL = '/setup/systemOverview.apexp?setupid=SystemOverview'; Pagereference systemOverviewPr = new PageReference(partialURL); efa.setBody(systemOverviewPr.getContentAsPdf()); email.setFileAttachments(new Messaging.EmailFileAttachment[] {efa}); Messaging.SendEmailResult[] r = Messaging.sendEmail(new Messaging.Singleemailmessage[] { email});
Here is one-way using Apex that will send the System Overview page as a PDF attachment. Hope this helps.
Thanks,
Nagendra
like:
Integer cObjectLimit=customObjects;
etc