11-13-2017 08:57 AM
Is there a way to use the existing email templates when calling createEvent in the XML API? For example, I tried passing the following (this is part of the XML request for createEvent):
<emailTemplates>
<format>HTML</format>
<enrollmentMsgs>
<acceptedEmail>
<send>true</send>
</acceptedEmail>
</enrollmentMsgs>
<reminderMsgs>
<firstReminder>
<send>true</send>
<sendDateTime>01/02/2018 10:00:00</sendDateTime>
</firstReminder>
<secondReminder>
<send>true</send>
<sendDateTime>01/03/2018 10:00:00</sendDateTime>
</secondReminder>
</reminderMsgs>
And it gave me an error that <content> was required.
So I tried passing it the template email data:
<emailTemplates>
<format>HTML</format>
<enrollmentMsgs>
<acceptedEmail>
<subject>Registration approved for Web seminar: %Topic%</subject>
<from>messenger@webex.com</from>
<replyTo>%HostEmail%</replyTo>
<content>Hello %AttendeeName%,Your registration was approved for the following Web seminar. We will start the event on time. Please join it at least 10 minutes before the scheduled starting time so you won''t miss valuable information.Topic: %Topic%Host: %HostName%%MeetingTimeInformation%Event number: %MeetingNumber%Registration ID: %EnrollmentID%Event password: %EventPassword%-------------------------------------------------------To join the online event -------------------------------------------------------Click here to join the online event.Or copy and paste the following link to a browser: %JoinURLStr%To view in other time zones or languages, please click the link:%MeetingInfoURLInOtherTimezone%%TeleconferenceDesc%%TeleconferenceInfoNN%-------------------------------------------------------For assistance-------------------------------------------------------You can contact %HostName% at:%HostEmail%Can''t join the event?%DownloadInstruction%%UCFAttendeeVerifyPlayers%%EmailFooter%%Disclaimer%</content>
<send>true</send>
</acceptedEmail>
</enrollmentMsgs>
<reminderMsgs>
<firstReminder>
<subject>Reminder for Web seminar: %Topic%</subject>
<from>messenger@webex.com</from>
<replyTo>%HostEmail%</replyTo>
<content>Hello %AttendeeName%,This is a reminder that you are registered for the Web seminar. The seminar will start on time. Please join at least 10 minutes before the starting time so that you don''t miss valuable information.Topic: %Topic%Host: %HostName%%MeetingTimeInformation%Event number: %MeetingNumber%Event password: %EventPassword%Registration ID: %EnrollmentID% -------------------------------------------------------To join the online event-------------------------------------------------------1. Click here to join the online event.Or copy and paste the following link to a browser: %JoinURLStr%2. Click "Join Now".To view in other time zones or languages, please click the link:%MeetingInfoURLInOtherTimezone%%TeleconferenceDesc%%TeleconferenceInfoNN%Teleconference Password: %EventPassword%-------------------------------------------------------For assistance-------------------------------------------------------You can contact %HostName% at:%HostEmail%%UCFAttendeeVerifyPlayers%%Disclaimer%</content>
<send>true</send>
<sendDateTime>01/02/2018 10:00:00</sendDateTime>
</firstReminder>
<secondReminder>
<subject>Reminder for Web seminar: %Topic%</subject>
<from>messenger@webex.com</from>
<replyTo>%HostEmail%</replyTo>
<content>Hello %AttendeeName%,This is a reminder that you are registered for the Web seminar. The seminar will start on time. Please join at least 10 minutes before the starting time so that you don''t miss valuable information.Topic: %Topic%Host: %HostName%%MeetingTimeInformation%Event number: %MeetingNumber%Event password: %EventPassword%Registration ID: %EnrollmentID% -------------------------------------------------------To join the online event-------------------------------------------------------1. Click here to join the online event.Or copy and paste the following link to a browser: %JoinURLStr%2. Click "Join Now".To view in other time zones or languages, please click the link:%MeetingInfoURLInOtherTimezone%%TeleconferenceDesc%%TeleconferenceInfoNN%Teleconference Password: %EventPassword%-------------------------------------------------------For assistance-------------------------------------------------------You can contact %HostName% at:%HostEmail%%UCFAttendeeVerifyPlayers%%Disclaimer%</content>
<send>true</send>
<sendDateTime>01/03/2018 10:00:00</sendDateTime>
</secondReminder>
</reminderMsgs>
2/2018 10:00:00
But it shows up as plain text and doesn't use the templates at all. My templates are "Approved #1", "First Reminder#1", "Second Reminder#1", etc.
Is there a way to pass the template name to the XML to tell createEvent to use that?
Thanks,
Steve
Solved! Go to Solution.
11-13-2017 01:25 PM
Hello,
Your content values in your example contain no HTML tags. If you find that html content is not being displayed after setting the content correctly, then a bug report can be created to address the issue. It would not be possible to specify site email templates in your API request. Email support for API requests varies in implementation, mostly due to APIs being originally intended to hide WebEx functionality behind a proprietary web site or application and developers generally opting to manage their own automated emails from their own email system and domain. You will find that Meeting Center and Training Center support the email templates in most cases, but Event Center uses the content specified in the request.
11-13-2017 01:25 PM
Hello,
Your content values in your example contain no HTML tags. If you find that html content is not being displayed after setting the content correctly, then a bug report can be created to address the issue. It would not be possible to specify site email templates in your API request. Email support for API requests varies in implementation, mostly due to APIs being originally intended to hide WebEx functionality behind a proprietary web site or application and developers generally opting to manage their own automated emails from their own email system and domain. You will find that Meeting Center and Training Center support the email templates in most cases, but Event Center uses the content specified in the request.
11-13-2017 01:29 PM
OK. I did see the HTML-tagged content in the email templates. Will the XML recognize that I'm using HTML as part of the <content> tag? Also, the email templates have a header and footer GIF associated with it. Is there a way to include those header and footer GIFs in the <content> tag?
11-13-2017 01:36 PM
Hello,
You should be fine to use HTML inside of the content element. If you want to include the WebEx images in your template, you will need to remote link the images in your HTML. As suggested earlier, please report any issues you have with the HTML inside your content element so that it can be addressed if any issues arise.
11-14-2017 05:57 AM
OK, I tried using HTML in my <content> tag and got the error "Email template content required".
Here is how the <content> tag looks:
<content>
<html><body>
<table width="576" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<font size="2" face="Tahoma, Arial, sans-serif, Helvetica, Geneva">
<BR></BR>
Hello %AttendeeName%,
<BR></BR>
<BR></BR>
Your registration was approved for the following Web seminar. We will start the event on time. Please join it at least 10 minutes before the scheduled starting time so you won''t miss valuable information.
<BR></BR>
<BR></BR>
Topic: %Topic%
<BR></BR>
Host: %HostName%
<BR></BR>
%MeetingTimeInformation%
<BR></BR>
Event number: %MeetingNumber%
<BR></BR> Registration ID: %EnrollmentID%
<BR></BR> Event password: %EventPassword%
<BR></BR>
<BR></BR> -------------------------------------------------------
<BR></BR>
To join the online event
<BR></BR> -------------------------------------------------------
<BR></BR>
<a href="%JoinURLStr%"> Click here </a> to join the online event.
<BR></BR> Or copy and paste the following link to a browser:
<BR></BR> %JoinURLStr%
<BR></BR>
<BR></BR> To view in other time zones or languages, please click the link:
<BR></BR> %MeetingInfoURLInOtherTimezone%
<BR></BR> %TeleconferenceDesc%%TeleconferenceInfoNN%
<BR></BR> Teleconference password: %EventPassword%
<BR></BR>
<BR></BR> -------------------------------------------------------
<BR></BR>
For assistance
<BR></BR> -------------------------------------------------------
<BR></BR> You can contact %HostName% at:
<BR></BR> %HostEmail%
<BR></BR>
<BR></BR>
<a href="%JoinEventHelpURL%">Can''t join the event?</a>
<BR></BR>
<BR></BR> %DownloadInstruction%
<BR></BR>
<BR></BR> %UCFAttendeeVerifyPlayers%
<BR></BR>
<BR></BR> %EmailFooter%
<BR></BR>
<BR></BR> %Disclaimer%
<BR></BR>
</font>
</td>
</tr>
</table>
</body></html>
</content>
11-14-2017 07:11 AM
I figured it out. I needed to use the CDATA tag in the XML. See below:
<content><![CDATA[<html><body>HTML CONTENT HERE</body></html>]]></content>
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide