Ricerche recenti


Nessuna ricerca recente

Gareth Elsby's Avatar

Gareth Elsby

Data ingresso 16 apr 2021

·

Ultima attività 27 ott 2021

Seguiti

0

Follower

0

Attività totali

2

Voti

0

Abbonamento

1

PANORAMICA ATTIVITÀ

Ultima attività di Gareth Elsby

Gareth Elsby ha commentato,

Commento nella community Discussion - Tips and best practices from the community

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!

Visualizza commento · Data ultimo post: 15 mag 2019 · Gareth Elsby

0

Follower

0

Voti

0

Commenti