• PerGeert-too
  • 0 Points
  • Member since 2010

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
  • 2

I have a VF page sending a meeting request:

<messaging:emailTemplate subject="Consumables Test Event" recipientType="Contact" relatedToType="JobContact__c"> <messaging:plainTextEmailBody > Dear {!recipient.Name}, Please attend the consumables test "{!relatedTo.CustomerEvent__r.Name}" for "{!relatedTo.CustomerEvent__r.Customer__r.Name}". Please answer by responding to this initation. </messaging:plainTextEmailBody> <messaging:attachment filename="meeting.ics" renderAs="text/calendar; charset=UTF-8; method=REQUEST"> BEGIN:VCALENDAR METHOD:REQUEST BEGIN:VEVENT UID:{!relatedTo.Id} <apex:outputText value="{0,date,yyyyMMdd'T'HHmmss'Z'}"> DTSTAMP:<apex:param value="{!NOW()}" /> </apex:outputText> <apex:outputText value="{0,date,yyyyMMdd'T'HHmmss'Z'}"> DTSTART:<apex:param value="{!relatedTo.CustomerEvent__r.EventStart__c}" /> </apex:outputText> <apex:outputText value="{0,date,yyyyMMdd'T'HHmmss'Z'}"> DTEND:<apex:param value="{!relatedTo.CustomerEvent__r.EventEnd__c}" /> </apex:outputText> SUMMARY:Consumables Test at {!relatedTo.CustomerEvent__r.Venue__r.Name} ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE; CN="{!recipient.name}":MAILTO:{!recipient.email} ORGANIZER;CN="Consumables Test":MAILTO:ourservice@5pxvocu476wr7aep8oclraf47.in.sandbox.salesforce.com LOCATION:{!relatedTo.CustomerEvent__r.Venue__r.Name}, {!relatedTo.CustomerEvent__r.Venue__r.PrimaryStreet__c},{!relatedTo.CustomerEvent__r.Venue__r.PrimaryCityDistrict__c},{!relatedTo.CustomerEvent__r.Venue__r.PrimaryCity__c} SEQUENCE:0 PRIORITY:5 END:VEVENT END:VCALENDAR </messaging:attachment> </messaging:emailTemplate>


I works great - the recipient sees a meeting request an may clickAaccept or Decline in Outlook. There is an email service setup to catch the reply: ourservice@5pxvocu476wr7aep8oclraf47.in.sandbox.salesforce.com


Question is, I cannot figure out how to catch the UID in the answer in order to update the attendee in question. I've looked at email header, attachement etc. but no luck. I am pretty sure that somewhere I'll be able to retrieve the original UID is the response.



Hello.  I am writing an scontrol which overrides the New button on a Custom Object.   I want the button to take me to an edit screen, but I want to pass a few parameters.  I'm able to pass constant string parameters into fields, but I can't make dynamic fields work.  My basic scontrol is pasted below.  The "static text here" is displayed in the input field in the edit screen.  However I can't make the Project__c.Name value appear.  I've tried all sorts of things - enclosing it in quotes (then the quoted text appears), using the merge notation (error when saving), etc.

Note that I'm trying to create a new Timecard__c record from inside the Project__c record's related list.  (If using the New button from anywhere else, these fields will be blank which is fine...)  So my question is - what is the proper notation that I use to pass the value of Project__c.Name?

<script type="text/javascript">
window.parent.location.href="{! URLFOR($Action.Timecard__c.New, null, [CF00N50000001S4Rz="static text here", CF00N50000001Ru1r=Project__c.Name], true)}";

Thanks for your time.


  • May 21, 2007
  • Like
  • 0