function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
levaleva 

Customizing ics subject headings

Hi,

I need to send out a calendar invite (ics) from APEX. I can genrated and send out the invite but for some reason cannot customize subject.. Here is what I am doing

String ics = 'BEGIN:VCALENDAR\n' ... +'SUMMARY;LANGUAGE=en-us:'+subject+'\n' ...  +'END:VCALENDAR\n';
Blob.valueOf(ics)

Attaching the blob. ALL the custom fields I set in the invite - times, location, etc work fine. But   the subject is alwaty - "Sandbox:"

Thank you
Best Answer chosen by leva
Ashish_SFDCAshish_SFDC
Hi , 


I think this "msg.setSubject(subject);" should work, 

See the detailed code and conversation in the below thread,

https://developer.salesforce.com/forums?id=906F000000093eNIAQ


Regards,
Ashish

All Answers

Ashish_SFDCAshish_SFDC
Hi , 


I think this "msg.setSubject(subject);" should work, 

See the detailed code and conversation in the below thread,

https://developer.salesforce.com/forums?id=906F000000093eNIAQ


Regards,
Ashish

This was selected as the best answer
levaleva
Hi Ashish, 

You  are right. We figured it out a while ago but that was the issue