Pesquisas recentes


Sem pesquisas recentes

Ned Petrov's Avatar

Ned Petrov

Entrou em 16 de jan. de 2024

·

Última atividade em 02 de dez. de 2024

Seguindo

0

Seguidores

0

Atividade total

44

Votos

7

Assinaturas

16

VISÃO GERAL DA ATIVIDADE

Atividade mais recente por Ned Petrov

Ned Petrov comentou,

ComentárioCreating dashboards

Hello,

 

The scheduler in the new builder is missing the option to set a custom email subject. This is something we are using with the legacy tool and would like to know if there are any plans to implement it in the new one.

 

Thanks

Exibir comentário · Publicado 02 de dez. de 2024 · Ned Petrov

0

Seguidores

1

Votos

0

Comentários


Ned Petrov comentou,

Comentário na comunidade Developer - Zendesk APIs

Hi Salman,

 

You can use POST /api/v2/users to create a new user.

 

More details here: https://developer.zendesk.com/api-reference/ticketing/users/users/#create-user 

 

Ned

Exibir comentário · Publicado 04 de nov. de 2024 · Ned Petrov

0

Seguidores

0

Votos

0

Comentários


Ned Petrov comentou,

Comentário na comunidade Developer - Zendesk APIs

Hi PR,

 

I'm unable to figure out how the “Update Translation” endpoints should be used. Maybe someone else can explain.

 

What I can suggest is to go over all articles with the API and create a new article with the correct locale for each one, and then delete the one with the wrong locale.

 

Ned

Exibir comentário · Publicado 04 de jul. de 2024 · Ned Petrov

0

Seguidores

0

Votos

0

Comentários


Ned Petrov comentou,

Comentário na comunidade Developer - Zendesk APIs

Hi Erazem,

Are you trying to change the ticket status to solved, by any chance?
You might have a ticket field with the “Required to solve a ticket” checkbox.

 

Ned

 

Exibir comentário · Editado 04 de jun. de 2024 · Ned Petrov

0

Seguidores

0

Votos

0

Comentários


Ned Petrov comentou,

Comentário na comunidade Developer - Zendesk Apps Framework (ZAF)

I managed to get it working somehow using the guide here:
https://developerblog.zendesk.com/making-modals-work-in-zaf-v2-251b7c940e58

Here are some snippets from my code as it might be useful to someone:

modal.html___________________
    
        
		
    

 

Calling the Modal______________
const openFileModal = useCallback(
    async (url: string) => {
        try {
            const client = getZendeskClient()
            const context = await client.context()
            const parent_guid = context.instanceGuid

            const modalContext = await client.invoke("instances.create", {
                location: "modal",
                url: `assets/modal.html#parent_guid=${parent_guid}`,
                size: { width: "80vw", height: "70vh" },
            })

            const modalClient = client.instance(
                modalContext["instances.create"][0].instanceGuid,
            )

            const setHtml = () => {
                const modalContentString = renderToString(
                    fileType === "image" ? (
                        
                    ) : (
                        
                    ),
                )
                modalClient.trigger("drawData", modalContentString)
                client.off("modalReady", setHtml)
            }

            client.on("modalReady", setHtml)
            modalClient.on("modal.close", () => {})
        } catch (error) {
            console.error("Failed to open modal:", error)
        }
    },
    [fileType],
)

Ned

Exibir comentário · Publicado 30 de mai. de 2024 · Ned Petrov

0

Seguidores

0

Votos

0

Comentários


Ned Petrov comentou,

Comentário na comunidade Developer - Zendesk Apps Framework (ZAF)

Hi,

I'm experiencing the same issue. Unfortunately, the solution was not shared here.

I have a similar code and everything is working fine, and the modal is getting populated with the expected data, but once I move to a different opened ticket tab and open a modal, the window appears, but it remains empty.

This is the code I'm using to open the modal:

const openFileModal = useCallback(async (url: string) => {
    try {
        const client = getZendeskClient()
        const modalContext = await client.invoke("instances.create", {
            location: "modal",
            url: "assets/modal.html",
            size: { width: "80vw", height: "70vh" },
        })

        const modalClient = client.instance(
            modalContext["instances.create"][0].instanceGuid,
        )

        const setHtml = () => {
            const modalContentString = renderToString(
                fileType === "image" ? (
                    
                ) : (
                    
                ),
            )
            modalClient.trigger("drawData", modalContentString)
            client.off("modalReady", setHtml)
        }

        client.on("modalReady", setHtml)
        modalClient.on("modal.close", () => {})
    } catch (error) {
        console.error("Failed to open modal:", error)
    }
}, [])

Ned

Exibir comentário · Publicado 30 de mai. de 2024 · Ned Petrov

0

Seguidores

0

Votos

0

Comentários


Ned Petrov comentou,

Comentário na comunidade Developer - Zendesk APIs

Hi Kevin,

I can successfully create a ticket with the POST /api/v2/tickets endpoint.

Can you please share the request with the json body that gives you the error?

Ned

Exibir comentário · Publicado 29 de mai. de 2024 · Ned Petrov

0

Seguidores

0

Votos

0

Comentários


Ned Petrov comentou,

Comentário na comunidade Developer - Zendesk APIs

I tested this and it's working fine with a custom drop-down field using the “POST /api/v2/tickets” endpoint.

 

I noticed that the beginning of your body is “request” but in the docs it's “ticket”.

{
    "ticket": {
    ....

Exibir comentário · Publicado 21 de mai. de 2024 · Ned Petrov

0

Seguidores

0

Votos

0

Comentários


Ned Petrov comentou,

Comentário na comunidade Developer - Zendesk APIs

Hi Jacob,

Is the custom field ID the same in your request and in the error? Just wondering if you have other mandatory custom fields required to open a request. And make sure to put the value tag and not the value you see when viewing the ticket.

For testing purposes, you can try to disable the custom field and see if the request will work without it.

Ned

Exibir comentário · Editado 21 de mai. de 2024 · Ned Petrov

0

Seguidores

0

Votos

0

Comentários


Ned Petrov comentou,

Comentário na comunidade Developer - Zendesk APIs

Hi Vipul,

I think there shouldn't be a difference if the tickets were merged. Can you share an example of the code you're trying to use?

Ned

Exibir comentário · Publicado 10 de mai. de 2024 · Ned Petrov

0

Seguidores

0

Votos

0

Comentários