Is it possible to get a list of the mail merge templates I've created in CRM within a custom function? I want to retrieve them and put them in a dropdown list but all I get is a scopes error! Can anyone see where I'm going wrong? Is this even possible?
Error:
templatesResponse : {"code":"OAUTH_SCOPE_MISMATCH","details":{},"message":"invalid oauth scope to access this URL","status":"error"}
Scopes:
ZohoCRM.send_mail.deals.Create
ZohoCRM.templates.email.READ
ZohoCRM.Files.CREATE
ZohoCRM.settings.mailmerge.CREATE
ZohoCRM.modules.deals.READ
ZohoWriter.Merge.ALL
ZohoCRM.modules.contacts.READ
ZohoCRM.settings.mailmerge.ALL
ZohoCRM.settings.mailmerge.UPDATE
ZohoWriter.merge.ALL
ZohoCRM.settings.mailmerge.DELETE
ZohoCRM.settings.mailmerge.READ
ZohoWriter.documentEditor.ALL
ZohoCRM.settings.workdrive.ALL
ZohoCRM.settings.message_templates.READ
What am I missing?!
Emma