One more ask - can we rename the ics file?
Sorry, not at this time.
I need to have line breaks in an event description for the calendar links in both outlook and google calendar. Looking to having my cake and eating it too.
The event description is being used for both the google calendar link and the ics file link. \n works for Outlook but not for Google Calendar, <br> works for Google Calendar and not for Outlook.
Linebreak code | Works |
---|---|
<br>, %3Cbr%3E | GoogleCal |
\n, %0D%0A | ics |
??? | Both Google Cal and .ics |
Is there one magical line break code thats compatible with both? Thanks for your time.
Try it now with \n (real linebreak) in both places -- I changed GCal mode so it replaces \n with <br> automatically.
Thank you for your response, is the agical link still for : http://ics.agical.io/beta/alt_sep/ ? The gcal still printed \n
Why are you using the beta?
Use the main http://ics.agical.io. But you do have to send it as %0D%0A (because it has to be URL-encoded, like everything).
Thanks again, but you said you changed GCal mode so it replaces \n with <br> automatically. It didn't change automatically. If i use %0D%0A it line breaks for Gcal, but breaks the ics description after %0D%0A. \n works for ics but /n prints in gcal. There isn't a one code solution for line breaks in both formats yet?
If i use %0D%0A it line breaks for Gcal, but breaks the ics description after %0D%0A.
That was what I meant by "automatically" because that's an standard encoded \n, which is transformed to <br> for Gcal now.
On the ICS side it seems like you want a the standard encoded \n to become a double-encoded \n, so that it ends up as a literal string "\n" (not LF, but literal backslash-n) in the ICS file. Let me look at that.
'K., try it -- "it" meaning %0D%0A -- with the /beta version now.
I really appreciate your help, espescially with updating the beta. The gcal works perfectly. The .ics description gets cut off (disappears) after %0D%0A . Is it just me?
I think it is just you now?
If I go to
http://ics.agical.io/beta/?subject=Meet%20{{company.Account%20Owner%20First%20Name}}&description=...
the ICS file is
BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
COMMENT:via ics.agical.io
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTAMP:20190724T210129Z
UID:20190724T210129Z-621158197@ics.agical.io
DTSTART:20161026T190000Z
DTEND:20161026T200000Z
ORGANIZER:Sandy
SUMMARY:Meet {{company.Account Owner First Name}}
BEGIN:VALARM
TRIGGER;VALUE=DURATION:-PT45M
DESCRIPTION:Agical Alarm: Meet {{company.Account Owner First Name}}
ACTION:DISPLAY
END:VALARM
DESCRIPTION:Take\na\nbreak
LOCATION:Sandy's Desk
ATTACH:http://www.example.com/
END:VEVENT
END:VCALENDAR
which is what I expect.