GAM calendar <email> addevent - needing to insert a linefeed into the description

67 views
Skip to first unread message

Matthew Russell

unread,
Jan 10, 2017, 6:15:03 PM1/10/17
to GAM for G Suite
Hi.  Does anyone know how I can insert a new line feed into the description of the event when using GAM calendar <email> addevent?

I tried "\n" and "\\n" and """\\n""" and """\n"""  based on the V3 API doc for Google. 

Thanks in advance
Matt

Ross Scroggs

unread,
Jan 10, 2017, 7:12:21 PM1/10/17
to google-ap...@googlegroups.com
Matthew,

No. I'll submit the change to Jay, in the meantime my version will do it: https://github.com/taers232c/GAM-B/releases

gam calendar f...@domain.com addevent ... description "Line 1\nLine 2\nLIne 3"

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/d33c84aa-bf24-4c41-961c-afc1e98fb0a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Matthew Russell

unread,
Jan 11, 2017, 6:43:19 PM1/11/17
to GAM for G Suite
Thanks Ross.

MikeM

unread,
Apr 14, 2019, 11:48:58 PM4/14/19
to GAM for G Suite
Was this ever ported to the regular GAM?  I'm having the same issue.


On Tuesday, January 10, 2017 at 5:12:21 PM UTC-7, Ross Scroggs wrote:
Matthew,

No. I'll submit the change to Jay, in the meantime my version will do it: https://github.com/taers232c/GAM-B/releases

gam calendar f...@domain.com addevent ... description "Line 1\nLine 2\nLIne 3"

Ross
On Tue, Jan 10, 2017 at 3:15 PM, Matthew Russell <russ...@glennie.qld.edu.au> wrote:
Hi.  Does anyone know how I can insert a new line feed into the description of the event when using GAM calendar <email> addevent?

I tried "\n" and "\\n" and """\\n""" and """\n"""  based on the V3 API doc for Google. 

Thanks in advance
Matt

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.



--
Ross Scroggs

Ross Scroggs

unread,
Apr 15, 2019, 10:27:28 AM4/15/19
to google-ap...@googlegroups.com
Mike,

Yes. What platform (Windows/Mac/Linux) are you?
Show the command you are executing.

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

MikeM

unread,
Apr 15, 2019, 10:45:33 AM4/15/19
to GAM for G Suite
Sorry, this was a code error on my part.  the command was something like (trimmed)

$cmd = "gam calendar account@----.com addevent description 'this is a test \n this is another line' ";

Apparently embedding the single quote in the double quote still made php not parse the \n. I changed it to

$cmd = "gam calendar account@----.com addevent description \"this is a test \n this is another line\" " ;

And it started working. Cant believe I have't run into that before.


Thanks!


On Monday, April 15, 2019 at 7:27:28 AM UTC-7, Ross Scroggs wrote:
Mike,

Yes. What platform (Windows/Mac/Linux) are you?
Show the command you are executing.

Reply all
Reply to author
Forward
0 new messages