[Archive] CC Customer On All Organisation Requests | Community
Skip to main content

[Archive] CC Customer On All Organisation Requests

  • October 29, 2015
  • 44 replies
  • 0 views

Show first post

44 replies

  • March 8, 2016

This is brilliant! 

Thanks for sharing!


  • March 23, 2016

I've tried variations with both target URL and target HTTP and though I can prove that my constructed CC list is be built correct, I'm never actually seeing the emails added to the CC list of the ticket. :-(  Do the emails have to be registered with existing user accounts?  I was hoping to use this technique as a way to get around that silly limitation in Zendesk, and considering the purpose of this post, I assumed this made it possible to do so.  The emails I'm trying to add through the target HTTP do not exist as users in our ZD instance, so I'm wonder if that's why I'm never seeing the emails added to the CC list.


  • March 23, 2016

@Yannick: I think you're on to something. Because I've noticed similar when I've wanted to add a Cc'ed user and have them see a comment I'm adding, I can't do them at the same time. I have to add the Cc'ed user, submit as open, then add the comment, then submit as open. So you must be right that there's a non-deterministic ordering going on.

@Daniel: you definitely do NOT need these people to be valid Zendesk accounts, as you say, it's a way around that whole problem. It sounds to me like maybe your HTTP or URL target might be misconfigured--did you actually do the test option and see a reasonable response? Because when you test it you should get the resulting record back of a test record. Here's another thing you can do, too: add an "email" event that emails just you every time the trigger runs and have it send you the {{dc.extract_mail_ccs}} in the body of the email and you'll be able to see if that's resulting in anything meaningful.


  • March 8, 2017

This is amazing Graeme,

I have 1 question. I got the trigger & the target working, but the notification email is not sent to the CC-ed person added by the trigger after the ticket creation. However, the email is sent after the first reply. Meaning that the newly added CC is not notified with after the ticket creation.

 

Any ideas, how can I overcome this problem?

Thanks,


ZZ55
  • Author
  • March 9, 2017

Hossam

Sorry to say that the newly added CC not being notified on the ticket creation is a limitation of this approach.

You may want to explore the user settings. If you give a user access 'to view tickets from 'user's org', the user will then have the option to 'follow' all organisation requests. The user can either set this up, or you can assume their identity and set it up for them.


  • May 24, 2017

Hi All

Many Thanks for all the help on this article, I personally have no idea what some of the code is doing but it works perfectly in terms of adding the CC users to out tickets which is critical functionality for us as we need to set default contacts for customer accounts especially when alarms come from monitoring emails rather than the customer directly. 

I just have two problems that im hoping someone could help with. 

1. On new ticket creation the CC user doesnt receive the email, the trigger is top of the list but the CC doesnt get added until after the notify requester of new ticket trigger so they dont recieve it, I assume due to the PUT request not reaching zendesk for a few seconds

2. Ideally, I would like to check the requester field to ensure none of the CC's being added are also the requester if they are drop them from the CC list

All this should be default in zendesk as customer default contacts are a very common feature. 

Many Thanks


  • August 23, 2017

Hi- thanks for this! Was able to get it working in my instance here. Too bad there's no solution for the initial "email has been created" email, but something is better than nothing!

 


Nicole17
  • August 24, 2017

Hey Stephen - glad to hear you got things working better for you. 


  • October 6, 2017

Hi Everyone,

I want to forward the ticket to another Zendesk instance, so I am using an http target to forward the ticket info:

JSON:

{
"ticket": {
"subject":"{{ticket.title}}",
"description":"{{ticket.description}}",
"type":"{{ticket.ticket_type}}",
"priority": "{{ticket.priority}}",
"tags":"{{ticket.tags}}",
"status": "{{ticket.status}}",
"comment":"{{ticket.comments_formatted}}",
"requester": { "name": "{{ticket.requester.name}}", "email": "{{ticket.requester.email}}" },
"collaborators":["{% for cc in ticket.ccs %}{{cc.email}},{% endfor %}}"]
}
}

However, only the first CC can be transferred to the new ticket...How can I get all CCs to the new ticket?

 


  • October 12, 2017

Hi Jennifer!

I'm checking with the Community Moderators to see if anyone has an answer on this for you.


  • October 12, 2017

Hi Jessie,

Thanks! I have already solved this issue:) I will post a tutorial in the tips section.

Jennifer.


Jennifer16
  • October 12, 2017

Looking forward to it. :) Thanks for doing that, Jennifer!


  • October 12, 2017

Fantastic! You're the best. :D


  • August 28, 2019

Hi,

Does anyone have an idea how i am getting a user notified for all tickets under an organization without any setup on my behalf or that user was also not cc in any ticket?

Currently, my client is complaining about this but i cannot find why a user is being notified for all tickets without any setup.  Does anyone have a clue?

Thanks,

Yami


ZZ55
  • Author
  • August 28, 2019

Yamile

It is likely the user has clicked to follow organisation requests under my activities in the Help Centre.  You can assume the user’s identity to check that and either unfollow the requests on their behalf or talk them through the process so that they are aware of the option. 

Following an organisation will automatically CC the user into all organisation tickets.  


  • August 29, 2019

Hi Graeme,

OMG!!! yes that was it; i was breaking my head trying to figure this out but thank you.  Our client placed a bug against this and was upset that i had not resolved the issue yet.  

Thank you once again.

Regards,

Yami


Jimmy11
  • March 26, 2021

Does anyone know if the "CC Customer on All Organisation Requests" field can also be used to map to a Salesforce account field, via the Zendesk-Salesforce integration?  I would like to confirm it can be used to sync email addresses from the related Salesforce account, but at the same time, not break the functionality that is allowing the emails to be CCed to begin with.  Thanks.


  • January 26, 2023

Hello everyone, can you advise in my case? I want to create a similar setting as it is, but we do not use organization field for that. Instead I have custom field that is "Client name". I want to send notification to client users (hardocoded, two emails) whenever I choose this client name in this field. Is that possible? 


  • February 9, 2023
Hi Marcin,

If you are using a ticket field, you may reference your custom field via the placeholder ticket.ticket_field_<field ID number>. Alternatively, if there are specific addresses that you need to notify based on a field value, you can explore a workaround involving triggers and email targets. You create triggers that fire when a field is set to a particular value, and notifies external address through targets.