Búsquedas recientes
No hay búsquedas recientes

Gareth Elsby
Incorporación 16 abr 2021
·
Última actividad 27 oct 2021
Seguimientos
0
Seguidores
0
Actividad total
2
Votos
0
Suscripción
1
RESUMEN DE LA ACTIVIDAD
INSIGNIAS
ARTÍCULOS
PUBLICACIONES
COMENTARIOS DE LA COMUNIDAD
COMENTARIOS DE ARTÍCULOS
RESUMEN DE LA ACTIVIDAD
Última actividad de Gareth Elsby
Gareth Elsby hizo un comentario,
Hey Justin,
Great tool! I've taken a copy of this and I've been having a play around with it. I managed to create one to pull down organisations and support addresses. They work pretty good!
function onOpen(){
var ss = SpreadsheetApp.getActiveSpreadsheet();
var menu = [
{name: "Configure", functionName: "zendeskConfigure"},
{name: "Get Agents", functionName: "getAgents"},
{name: "Get Problems", functionName: "getProblems"},
{name: "Get Organisations", functionName: "getOrganisations"},
{name: "Get Support Addresses", functionName: "getSupportAddresses"},
{name: "Get Triggers", functionName: "getTriggers"}
];
ss.addMenu("Zendesk", menu);
}
// Get all organisations
function getOrganisations() {
var resultId = 'organizations';
var sheet = 'Organizations';
var params = 'organizations.json';
var fields = [ "id", "name", "domain_names","organization_fields" ];
var result = getClient().request(params);
spreadsheetDBSave(result, resultId, sheet, fields);
}
// Get all Support addresses
function getSupportAddresses() {
var resultId = 'recipient_addresses';
var sheet = 'Support Addresses';
var params = 'recipient_addresses.json';
var fields = [ "id", "name", "email", "default", "forwarding_status" ];
var result = getClient().request(params);
spreadsheetDBSave(result, resultId, sheet, fields);
}
Could you think of a way to handle pagination on Organisations? I could only pull down the first 100 :(
Thanks!
Ver comentario · Publicado 15 may 2019 · Gareth Elsby
0
Seguidores
0
Votos
0
Comentarios