Recent searches


No recent searches

Pulling macros based on specific action field

Answered


Posted Mar 30, 2021

Hello,

I was wondering if there is an option in the API request to pull a specific macros_action_field. My goal is to be able to pull only macros that have created that do not have plain text. While pulling them all is not an issue at the moment, as time goes on, I would like to only pull newer ones that are missing this field.

Similarly, if this is not available, is there a rule that can be set for all Macros requiring plain text before being submitted?

Thank you in advance for your help


1

2

2 comments

image avatar

Ekaterina Sumolaynina

Zendesk Customer Care

Hello Shawn,

Thank you for contacting Zendesk Support team!

You will find all parameters that can be used for filter when listing macros with API here: https://developer.zendesk.com/rest_api/docs/support/macros#list-macros

Unfortunately, it won't be possible to list macros depending on their actions, neither it's possible to create a trigger that would prevent you from applying macro to the ticket. What you can do is create a category for macros that don't have plain text in their actions and then pull it will API with category filter.

Here you can read everything about macros categories: https://support.zendesk.com/hc/en-us/articles/203690816-Organizing-and-managing-your-macros#topic_dpr_k1j_mw

For example, you have macro category that is called "Without text". Then you can use the following API to list just these macros:

https://subdomain.zendesk.com/api/v2/macros.json?category=Without%20text

I hope this helps!

1


This is great info. Thank you so much!

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post