How to export Zendesk macros into a spreadsheet



image avatar

Vlad

The Wise One - 2022Community Moderator

已于 2017年4月20日 发布

Regarding to this post I decide to make this short tutorial.

1. you need to be logedin as Admin or Agent of your ZD account.
2. open this link XYZ.zendesk.com/api/v2/macros.json?per_page=99 (but change XYZ to your zendesk account name)
2a. If you have more than 100 macros, you should export one more JSON file cause it's up to 100 macros per export. Second file is on this url https://XYZ.zendesk.com/api/v2/macros.json?per_page=99&page=2  (replace XYZ to your ZD name)
3. When json file is loaded, save it on your computer (CTRL+S or CMD+S)
4. Open site: https://json-csv.com/
5. Upload your JSON file
6. Wait a little
7. Click on Download button.

Ta-Da, you have your macros exported in CSV file format.

Hope this helps!


16

71

71 条评论

This works beautifully! It also helps if you want to find a specific word occurring in more than one Macro that needs to be changed. I recently had to change voice and tone for a specific term throughout our 500+ macro library and this saved me so much time.

0


Hey Mateusz,

You would need to use the api to bulk import macros and make changes to the descriptions. The link I attached should provide some additional information for you.

Cheers!

0


Hi, thanks for the tip how to export macros, it's very useful.

Is there a way to export the JSON file back to Zendesk with some changes? I want to add descriptions to macros and it would be very convenient if I could do it this way. 

 

0


Hi Jed - Yes, that API call should still work. However, I clicked through to your account and it looks like you have a different subdomain listed there from the one you indicated in your comment above. 

0


Is this link, http://xyz.zendesk.com/api/v2/macros.json?per_page=99, still functional? I tried it but it does not work. I'm getting the error message below.

  "error": {
    "title": "No help desk at jedbonillaephan.zendesk.com",
    "message": "There is no help desk configured at this address. This means that the address is available and that you can claim it at http://www.zendesk.com/signup"

0


Hello Juan,

You can try using sideload instead (if your plan is Enterprise)

/api/v2/macros.json?include=usage_30d&sort_order=asc

Or the standard usage for macros:

/api/v2/macros.json?sort_by=usage_30d&sort_order=asc

You can change asc to desc.

Hope this helps!

 

0


Hi There, 

What is the best way to export by usage in the last 30 days; 

I tried

https://(MyCompany).zendesk.com/api/v2/macros.json?per_page=99&sort_by=usage=30d


but was unable to do so

0


Hey Pradeep, I just checked and they seem to work. Please note you should remove XYZ from the links and put there your ZD subdomain. Sure, you need to be logged in as admin in your ZD. 

0


Hey Matthew, the key is that number of macros per an API call/request is limited to max 99 macros. 

So, if you have eg 250 macros, you will have to do the call 3x.
How to do that? Just replacing the last part of the URL "page=2". So you should call it with: page=1, page=2, page=3. Let me know if anything still isn't clear. Best.

0


登录再写评论。

找不到所需的内容?

新建帖子