The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
7 views

Routing Emails to multiple queues based on context?

I'm trying to figure out a way to parse emails that come in via email-to-case and assign them to the correct queues. Where this gets interesting is that although we can match the contact and account ...
0
votes
0answers
5 views

How to send the attachment in to the choosing option Email template email author?

I have create the visualforce page to Three buttons and i will written code to attach the attachment into the custom Notes and Attachments in the related list.but if i'm clicking the one button it has ...
0
votes
0answers
19 views

Grab Date via Apex from Inbound Email

When using Salesforce for Outlook, we'd like to somehow pass the date/time the original email was sent, so we can track exactly how long a case / response took. I know there are many items that can ...
2
votes
1answer
19 views

How to unzip a zipfile attachment in apex and process each file in the zip attachment

I am trying to unzip a zip file attachment. but, unable to unzip the attachment and process all the internal files in the zip file. I want to do this using an email handler class.
0
votes
0answers
9 views

How to stop creating the email signature graphics as attachments but still have the remaining attachments created

How to stop creating the email signature graphics as attachments but still have the remaining attachments created and associated to the related case when using Apex email service?
2
votes
1answer
25 views

Sending Addional Information through Inbound email Service?

We Want to send Additional Information such as Contact name, phone number etc through the email headers. Is it possible to do so and How? Since it's only name value pair is there any mechanism ...
0
votes
3answers
33 views

Send Email Button

I am trying to create a custom send email button on a custom object called Disease__c. I have patients linked to the disease, where disease is the Master in the master-detail relationship. ...
-2
votes
1answer
59 views

Test class passed, but main class only 44%

Good Morning Salesforce Stackexchange I have the following test class called “DeactivateUsers_Test” which has passed however main class “DeactivateUsers” is only getting code coverage of 44% ...
0
votes
1answer
26 views

Trying to implement a list to select Records, and email attachments, could use some pointers!

I recently just started working with Salesforce and Apex/VisualForce and was attempting to implement a page to email out the attachments of a Service Contract, however I seem to be stumbling with the ...
1
vote
1answer
14 views

Monitor email service with data feed: email report

I am surprised I do not find find any examples of best practices on this matter. So, I have feeling maybe I am doing something wrong. We have email service which is receiving emails with CSV file ...
1
vote
0answers
96 views

Email To Case - Duplicate Cases

Have an interesting problem with Email To Case setup, scenario is User A sends an email to a support mailer and copys User B on it. Auto response would go to User A. If User B picks up the first email ...
0
votes
1answer
96 views

Undeliverable email to email service

I am getting this error when writing email to my email service in my developer environment - using the email address I created the environment: This message was created automatically by the mail ...
2
votes
0answers
65 views

Custom InboundEmail handler - check if message is an automatic reply

I've implemented a custom inbound email handler for some departments using email-to-case, and we would need to avoid autoreply messages or automatic generated messages to create cases or trigger other ...
0
votes
0answers
179 views

How to insert Activity History record after sending an email

I cannot create a new Activity History record when using message.setSaveAsActivity(true); so i added mail.setTargetObjectId(con.id); its working fine. but actual issue is when i am sending mail ...
1
vote
2answers
127 views

Create and select attachments and add them to an email template?

Here's the setup of my problem, and i'm not sure how to get started. initial screen -> my user is on a VF page and makes some HTML selections. Also, they select a number of notes and attachments. ...
3
votes
1answer
79 views

PDF file name issue in apex Send Mail method

I want to add date to a PDF file name. I am sending an email from apex and attaching one PDF file with it. Now I want to set string with dynamic date with it. E.g.... date fromdate = ...
1
vote
1answer
113 views

Email Service Generate Email Address

Here i was made one Inbound Email Service..For that i made one Apex Class,here the code of the class... global class EmailDemoReceive implements Messaging.InboundEmailHandler { global ...
0
votes
1answer
223 views

how to fetch a notes and attachment of custom object and i want to send the notes title and body through of contact in accounts

i have already done some codes check the codes below and tel me what's wrong in this public PageReference send() { List<Contact> accounts=[SELECT Email,id FROM Contact WHERE AccountId ...
2
votes
0answers
75 views

Email Services + How to handle undelivered or bounce emails

This might be a known issue. But i could not find enough info to resolve the issue. We are using Email Service's email address as a From address to send emails to consumers. If consumer's email ...
1
vote
0answers
91 views

send email notification to a profile when lead is created

I'm trying to send an email to user a & b, when ever a on lead (created & updated) & the appointment info is available. Usually, i can do this by writing an workflow, but unfortunately, i ...
0
votes
1answer
59 views

Update custom object from Email service attachment

The use case is sending an attachment(csv) to my email service ; in the email service i will parse the csv ; each line of the csv will have values like key1,key2,value1 I have to query the custom ...
3
votes
2answers
66 views

Work out remaining singlemailmessage capacity in test

I have an Apex class that does some complicated decisions surrounding whether to send an e-mail to a user or not, including the fundamental "can we send any more e-mails today" check from Salesforce: ...
0
votes
1answer
47 views

Mass email a form to be filled out

I'm trying to capture quotes from vendors into our org. We have EE and we do not have Sites.com. Scenario: A Contact is marked Vendor Source. Purchase Request object and line items from related ...
0
votes
0answers
30 views

How to write email service class for the following xml?

VC 1.3 Response xml: <?xml version="1.0" encoding="UTF-8"?> <ValidateConfigResult> <Configuration> <ConfigId>CE05502807</ConfigId> <Status>false</Status> ...
0
votes
3answers
427 views

How to get parent object field values in a trigger

I have created a trigger that send an email when some conditions are met in a task object. It is working fine but I need to get some field values from the parent object (an opportunity) in order to ...
3
votes
1answer
447 views

Test class for sending email with Attachment

I need a test class for sending a email public blob body; public PageReference pdfmethod(){ try { // to get mail id Opportunity_Potential__c opp= [Select ...
3
votes
1answer
94 views

What's the field name for “Send Apex Warning Emails” in User object?

I have a try/catch block in the start method of a batch class (which would go in to a managed package). If an exception is thrown, then I'd like to send an email from the catch block to system admin ...
2
votes
2answers
58 views

Inbound Email question

I am building a Visualforce page, and the idea is sales people enter some numbers, and send to their manager for approval. I got the first part done, it's send email to their manager. But we want to ...
2
votes
2answers
339 views

<how to>Case trigger send email to external user/contacts

i have a custom text field which allow user to enter email address, separate by ':' if multiple email address and a trigger on case to send an email to those email addresses entered by customer. but ...
1
vote
1answer
546 views

How to send Mass Email from List View in Contact Or Lead using custom button

I have created class for sending a email and calling this "class" and "method" in new custom button..This logic works for "Detailed page Button"and for single record but how to make it work for List ...
0
votes
0answers
49 views

Need Examples for Remedyforce Integration with java using API

I need a java sample code for creating the incident via email when alert gets generated on remedyforce.i had created the email services setting for it but how to pass the alert information to ...
3
votes
2answers
446 views

getContent() returns Blob PDF-body in console, but HTML page (rendered like PDF) in Email service code

First at all: Happy New Year to you and your family. I wish you all the best in new 2014 year. And about my case: I use 'MyPdfRenderingPage.getContent();' method to get Blob PDF-body, create PDF ...
3
votes
1answer
584 views

INVALID_ID_FIELD, WhatId is not available for sending emails to UserIds

I am trying to run below code in trigger. List<User> recipients = [SELECT id FROM User WHERE UserRoleId=:operationsRole.Id]; for (User usr:recipients) { Messaging.SingleEmailMessage ...
7
votes
2answers
721 views

How to get the customer signature inside salesforce and generate the pdf?

We have a requirement for Customer Sign-up form. We have created a VF Tab and included VF page for creating Customer signup form. In that Customer Signup Form, we have a field to get the Customer ...
3
votes
1answer
3k views

Can anybody explain the UNABLE_TO_LOCK_ROW error?

Error Message: Developer script exception from Nicomatic : quotepotential : quotepotential: execution of AfterUpdate caused by: System.DmlException: Update failed. First exception on row 0 ...
3
votes
1answer
661 views

Inbound Email Service: Failed due to: SenderAuthorization

I'm developing an inbound email service to parse the email and create records in a custom object. This service was working fine in my developer org, but when I deployed this to a full sandbox for ...
3
votes
0answers
2k views

Send an email with apex with visualforce as email body

I have a visualforce page that I am trying to send from Apex code. I can't use a template for the e-mail and this visualforce page is never actually visited by anyone. I don't want the page to be ...
5
votes
2answers
354 views

Not able to run trigger on “Send an Email”?

I wrote the below simple trigger for preventing Users from emailing as anything but the support account. I wrote this to work for the "Send an email" Task page (when sending an email to an Opp, ...
2
votes
1answer
3k views

How to get download link/url from attachment file in salesforce?

Hi I have one requirement where I am storing attachments in attachment object. After that I also want to update a custom url type field in some custom object . The value will be a direct link to ...
3
votes
1answer
325 views

How to get values from a Messaging.Email object

I have code which builds a list of Messaging.Email objects to be sent out based on various conditions. The problem is I want to be able to write a test which asserts that these email factory methods ...
3
votes
0answers
547 views

Setup Auto-Response Rule when using Email-to-case for emails not related to an existing case

We have a specific workflow where most messages send to support and our other address is specifically given to the client once they have signed up and we email them directly. I am trying to setup an ...
2
votes
2answers
187 views

Error on Test coverage - Email service to create a new record

I have an email service that creates a new "training" record. the email body is broken down to populate several fields. Class: global class ProcessTraining implements Messaging.InboundEmailHandler { ...
0
votes
1answer
78 views

How to copy an attachment from an email to a case record using email service

I'm Using an Email Service to create a custom object record and a case record. The email has an CSV attachment and have to attached to the case record.
1
vote
3answers
2k views

Faile to send email due to SINGLE_EMAIL_LIMIT_EXCEEDED

My customer complained he got the following error message: SendEmail failed. First exception on row 0; first error: SINGLE_EMAIL_LIMIT_EXCEEDED, Failed to send email: [] Our apex code sends a single ...
0
votes
1answer
71 views

creating new email address for every project

I have to create new email address for every project.I am developing project management app in this application if application user is created new project then for this project my controller should ...
0
votes
0answers
223 views

Inbound email service doesn't set plainTextBody on multipart/alternative with text/plain content

I'm building my first InboundEmail service, and was surprised to find that the automated emails I'm trying to process aren't having their plainTextBody attribute set. The messages have the following ...
2
votes
1answer
463 views

How to use an Apex scheduler to send periodic emails with the pdf file as attachment?

I have created one vf page to create a report on what are the open cases available in the particular org as a PDF. I need to use an Apex schedular to send periodic emails with the pdf file as ...
5
votes
1answer
2k views

How to test if outbound email is send

I have a batch that sends out an email notification to the triggering user when something went wrong. The code that does this is called from the finish() method. I'm now looking for an elegant way to ...
1
vote
0answers
109 views

Ugly format of Email generated by EmailTemplate saved as Activity

I have written some code that sends an email based on an HTML based email template to contacts and stores a copy of the email as an activity. I noticed that the content of said email in the activity ...
5
votes
1answer
117 views

'DataDotComEntitySetting' is not supported

I am writing a custom email service. I can get the incoming csv file and parse it down to rows and then columns. I do my thing, then I try to insert the objects (I know they are all original, the data ...