• G J.ax1095
  • NEWBIE
  • 25 Points
  • Member since 2011

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies

Hi All,

I'm trying to log certain emails that have been sent via a wroflow.  I have created the email service and tested it and it works. I have also the workflow email working correctly (ie have it cc the email to my regualr email account).  However in running  the debug log monitor the inbound service does not get fired.  The monitoring shows the workflow firing and the emails getting sent to both my email address and the inbound email service (which has the domain salesforce.com approved) but the inbound service does not get fired.  Is there something that limits the inbound email service from accepting emails from within salesforce???

Hi All,

I'm trying to log certain emails that have been sent via a wroflow.  I have created the email service and tested it and it works. I have also the workflow email working correctly (ie have it cc the email to my regualr email account).  However in running  the debug log monitor the inbound service does not get fired.  The monitoring shows the workflow firing and the emails getting sent to both my email address and the inbound email service (which has the domain salesforce.com approved) but the inbound service does not get fired.  Is there something that limits the inbound email service from accepting emails from within salesforce???

Hi,

 I am  presently working with the inbound outbound email feature available in sales force.
   My scenario looks like this I have a workflow which gets triggered when a "campaign member" associated with "campaign" has "status" changed to "sent". So the workflow generates an action (an email alert) is send to the campaign member's email id.. For the email alert I have created my own template with a calender invite in the form of .ics file attachment.
Till here everything is working fine i.e. the supposed alert is sent to respective campaign member's email id.
I have created a email service and associated it to email id (generated by salesforce) for receiving any response to the calender invite but I am not receiving any response to this particular email address in email service as the associated email handler class is not getting invoked.I am able to say this on the basis that I cannot see the incoming mails in the  email log files which is obtained after using the "monitoring" option in the administration setup of salesforce.

Please could you provide me some help on this? Basically I want to know whether the incoming mails to email id (salesforce generated) in the email service, can be logged-in in the email logs?

I am attaching my email template for reference:

<messaging:emailTemplate relatedToType="CampaignMember"

    replyTo="jaya@gmail.com"

    subject=""

    >

<messaging:plainTextEmailBody >

Dear {},

 

</messaging:plainTextEmailBody>

 

<messaging:attachment filename="meeting.ics" >

 

BEGIN:VCALENDAR

METHOD:REQUEST

PRODID:Microsoft CDO for Microsoft Exchange

VERSION:2.0

BEGIN:VTIMEZONE

TZID:GMT -0500 (Standard) / GMT -0400 (Daylight)

BEGIN:STANDARD

DTSTART:<apex:outputText value="{0,date,yyyyMMdd'T'HHmmss}">

    <apex:param value="" /> 

</apex:outputText>

TZOFFSETFROM:-0400

TZOFFSETTO:-0500

END:STANDARD

BEGIN:DAYLIGHT

DTSTART:16010301T020000

TZOFFSETFROM:-0500

TZOFFSETTO:-0400

END:DAYLIGHT

END:VTIMEZONE

BEGIN:VEVENT

DTSTAMP:20101217T140608

DTSTART;TZID="GMT -0500 (Standard) / GMT -0400 (Daylight)":<apex:outputText value="{0,date,yyyyMMdd'T'HHmmss}">

    <apex:param value="" /> 

</apex:outputText>

SUMMARY:Test Message

UID:040000008200E00074C5B7101A82E00800000000C07DCFA4C99DCB01000000000000000

010000000584FE1BDDE8FF248BAB19BA4477C5AE2

ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE;CN=  "name":MAILTO:mailto:eds@gmail.com

ORGANIZER;CN="CIO":MAILTO:inboundemaildemo@q-42mjlnch6w5taj0qh6d4hjnlj.in.salesforce.com

LOCATION:GTM

DTEND;TZID="GMT -0500 (Standard) / GMT -0400 (Daylight)":<apex:outputText value="{0,date,yyyyMMdd'T'HHmmss}">

    <apex:param value="" /> 

</apex:outputText>

DESCRIPTION:

SEQUENCE:0

PRIORITY:5

CLASS:

CREATED:20101217T140326

LAST-MODIFIED:20101217T140340

STATUS:CONFIRMED

TRANSP:OPAQUE

X-MICROSOFT-CDO-BUSYSTATUS:BUSY

X-MICROSOFT-CDO-INSTTYPE:1

X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY

X-MICROSOFT-CDO-ALLDAYEVENT:FALSE

X-MICROSOFT-CDO-IMPORTANCE:1

TZID:GMT -0500 (Standard) / GMT -0400 (Daylight)

BEGIN:STANDARD

DTSTART:<apex:outputText value="{0,date,yyyyMMdd'T'HHmmss}">

    <apex:param value="" /> 

</apex:outputText>

TZOFFSETFROM:-0400

TZOFFSETTO:-0500

END:STANDARD

BEGIN:DAYLIGHT

DTSTART:16010301T020000

TZOFFSETFROM:-0500

TZOFFSETTO:-0400

END:DAYLIGHT

END:VTIMEZONE

BEGIN:VEVENT

DTSTAMP:20101217T140608

DTSTART;TZID="GMT -0500 (Standard) / GMT -0400 (Daylight)":<apex:outputText value="{0,date,yyyyMMdd'T'HHmmss}">

    <apex:param value="" /> 

</apex:outputText>

SUMMARY:Test Message

UID:040000008200E00074C5B7101A82E00800000000C07DCFA4C99DCB01000000000000000

010000000584FE1BDDE8FF248BAB19BA4477C5AE2

ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE;CN=  "name":MAILTO:mailto:eds@gmail.com

ORGANIZER;CN="CIO":MAILTO:inboundemaildemo@q-42mjlnch6w5taj0qh6d4hjnlj.in.salesforce.com

LOCATION:GTM

DTEND;TZID="GMT -0500 (Standard) / GMT -0400 (Daylight)":<apex:outputText value="{0,date,yyyyMMdd'T'HHmmss}">

    <apex:param value="" /> 

</apex:outputText>

DESCRIPTION:

SEQUENCE:0

PRIORITY:5

CLASS:

CREATED:20101217T140326

LAST-MODIFIED:20101217T140340

STATUS:CONFIRMED

TRANSP:OPAQUE

X-MICROSOFT-CDO-BUSYSTATUS:BUSY

X-MICROSOFT-CDO-INSTTYPE:1

X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY

X-MICROSOFT-CDO-ALLDAYEVENT:FALSE

X-MICROSOFT-CDO-IMPORTANCE:1

 

X-MICROSOFT-CDO-OWNERAPPTID:-61749286
X-MICROSOFT-CDO-APPT-SEQUENCE:0
X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20101217T140608
X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20101217T140608
BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:REMINDER
TRIGGER;RELATED=START:-PT00H15M00S
END:VALARM
END:VEVENT
END:VCALENDAR
</messaging:attachment>
 
</messaging:emailTemplate>

 

and my email handler class is as follows :


global class EventInboundController implements Messaging.InboundEmailHandler {
      global Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email, Messaging.InboundEnvelope envelope) {
          Messaging.InboundEmailResult result = new Messaging.InboundEmailresult();
            String myPlainText= '';
   String mySubjectText= '';
   myPlainText = email.plainTextBody;
   mySubjectText= email.subject;
   
    List<String> temp = mySubjectText.split(':');
    String response = temp[0];
    
    system.debug(response);
     
 
   result.success = true;
   return result;      }
  }

Hi - First time posting. I need to figure out a way to prevent duplicate record entries.

Firstly, I have created 2 custom objects:

1) Customer Project (Master)
2) Customer Project Team Assignments (Detail)


I need to create a validation rule or workflow rule to restrict a user from selecting a Contact on the Customer Project Team Assignment object that is already associated w/ the same Customer Project object.

The Contact can however be associated w/ different Customer Projects just no duplicates for a single Customer Project.

Does this make sense? Can anyone help? Please ask questions if I've left out some critical information.

Thanks,
Mike