Manage Office365 contacts folders with Ruby

Zlatan Zlatanov
Feb 28, 2018 · 3 min read

Long story short

Luckily

# make a folder under Inbox
my_folder = cli.make_folder 'My Stuff', parent: :inbox
# make a folder under Inbox
my_folder = cli.make_folder 'MyAwesomeContacts', parent: :contacts
parent = viewpoint.get_folder :contacts, act_as: user
viewpoint.make_folder 'MyAwesomeContacts', type: :contacts, parent: main_folder.id

Evermore

Development consultancy, specialised in building custom web solutions and applications since 2006. Visit us at: http://weareevermore.com

Zlatan Zlatanov

Written by

Evermore

Evermore

Development consultancy, specialised in building custom web solutions and applications since 2006. Visit us at: http://weareevermore.com