Rockel is a top-tier client of Zylker traders. Marcus handles communications with Rockel and would like to add Terence, the CTO of Zylker traders to the email conversations. In this case, the emails coming from user address rockel.com should have Terence looped in automatically as the secondary contact.
Like Zylker, many users have the requirement to include secondary contacts while communicating with their customers. Here's for you the custom function to automatically add static secondary contacts while responding to an email.
Prerequisite
1. Enable Secondary Contacts (CCs) in Tickets.
Navigate to Setup >> Customization >> General Settings >> Tickets >> Secondary Contacts (CCs) in Tickets >> Configure(If not enabled) or Edit Configuration(If enabled), select the department to which you want to implement the automation.
2. Create a Connection
To establish a connection, perform the following steps:
2.1 Go to Setup and choose Connections under Developer Space.
2.2 Click Create Connection.
2.3 Select Zoho OAuth under Default Connection.
2.4 Give the connection name as secondarycontact.
2.5 Under Scope choose the below scope values:
Desk.search.READ
Desk.tickets.READ
Desk.tickets.UPDATE
Desk.tickets.CREATE
Desk.contacts.READ
Desk.contacts.UPDATE
2.6 Click Create and Connect.
2.7 Click Connect and click Accept.
Connection is created successfully.
Create a Workflow Rule
1. Go to Setup, choose Workflows under Automation.
2. Under Workflows, click Rules >> Create Rule.
In the Basic Information section
3. Select Tickets under Module.
4. Enter a Rule Name and Description for the rule.
5. To activate the rule, select the Active checkbox. Click Next.
In the Execute on section, follow these steps:
6. Select Create checkbox to execute this rule every time a new ticket is created. Click Next.
7. In the Criteria section, specify the criteria as "Email contains @zylker.com" and click Next
8. In the Actions section, click the + icon and select New next to Custom Functions.
9. Enter a name and description for the custom function.
10. Under Argument Mapping, give a desired Method Name. Map the arguments as below:
10.1 In the Argument Name field , type ticketId, and from the Value drop-down list select Ticket Id under Ticket Information.
10.2 In the Argument Name field , type ticketContactId, and from the Value drop-down list select Contact Id under Contacts Information.
10.3 In the Argument Name field, type orgId, and from the Value drop-down list select specify custom value and enter your Zoho Desk. OrgId. To get Zoho Desk OrgId, navigate to Setup >> Developer Space >> API.
11. In the script window, insert the Custom Function given below:
- //--------------- User Input -----------------
- Email = "STATIC_EMAIL_ID"; // Static email ID
- deskURL = "https://desk.zoho.com";
- //-----------------------------------------------
- logs = Collection();
- secondaryContacts = list();
- ticketDetails = zoho.desk.getRecordById(orgId, "tickets", ticketId, "secondarycontact");
- logs.insert("ticketDetails": ticketDetails);
- secondaryCC = ticketDetails.get("secondaryContacts");
- if (secondaryCC != "" && secondaryCC != null)
- {
- secondaryContacts = secondaryCC.toList(",");
- }
- searchParam = Map();
- searchParam.put("from", 0);
- searchParam.put("limit", 1);
- field1 = "email:" + Email;
- encryptEmail = zoho.encryption.urlEncode(field1);
- searchParam.put("field1", encryptEmail);
- contactSearch = invokeurl
- [
- url: deskURL + "/api/v1/contacts/fieldSearch"
- type: GET
- parameters: searchParam
- connection: "secondarycontact"
- ];
- logs.insert("contactSearch": contactSearch);
- if(contactSearch != null && contactSearch.get("data") != null && contactSearch.get("data").size() > 0)
- {
- contactId = contactSearch.get("data").get(0).get("id");
- }
- else
- {
- createConatctParam = Map();
- lastName = Email.getPrefixIgnoreCase("@");
- createConatctParam.put("lastName", lastName);
- createConatctParam.put("email", Email);
- createContact = invokeurl
- [
- url: deskURL + "/api/v1/contacts"
- type: POST
- parameters: createConatctParam.toString()
- connection: "secondarycontact"
- ];
- logs.insert("createContact": createContact);
- contactId = createContact.get("id");
- }
- logs.insert("contactId": contactId);
- if(contactId != null && contactId != ticketContactId)
- {
- secondaryContacts.add(contactId);
- updateParam = Map();
- updateParam.put("secondaryContacts", secondaryContacts);
- updateTicket = invokeurl
- [
- url: deskURL + "/api/v1/tickets/" + ticketId
- type: PATCH
- parameters: updateParam.toString()
- connection: "secondarycontact"
- ];
- logs.insert("updateTicket": updateTicket);
- }
- info logs ;
Note: In Line 1 Email = "STATIC_EMAIL_ID", replace the "STATIC_EMAIL_ID" with the email address you prefer to be added in the secondary contact automatically. eg: Email = "terence@zylker.com" 12. Click Save to save the custom function
13. Click Save again to save the workflow.
We hope this custom function fosters your experience with Zoho Desk. Stay tuned for regular updates and insights on our automation features in this space.
Recent Topics
Side-by-Side view on Windows 11
Is there a way to open two notes in a side-by-side view? I'm running Notebook on a Desktop running Windows 11. If this feature doesn't exist, do you have plans for it?
Value shows in balance sheet for Goods in Transit
We have transferred goods from one warehouse to another warehouse and accepted the same at another warehouse. Although my balance sheet shows X amount as goods in transit value. I don't understand, how to clear that Can anyone guide us please?
Resolution Time Report
From data to decisions: A deep dive into ticketing system reports What are time-based reports? Time-based reports are valuable tools that help us understand how well things are going by breaking down key metrics over specific periods. By tracking, measuring,
Ask for a quote to multple vendors
We are able to send a Purchase order, but How can we Send a quote request to our vendor, once the value changes every time? I didn't see any feature like this in Zoho Books/ Inventory. Send this request with the Items that we want to know the cost, to
Bigin merge field in email template for subject line to match lead name
Hello We Are using email in to automatically create leads in our pipelines. When we want to reply from conversations, and apply an email template, it’s not matching the original subject line. It should be lead name to match. But it’s not working. Even
How to create auto-link between Invoice and Quote in CRM
It's strange that when you 'convert' a quote into an invoice, it doesn't auto-link the two. How can we develop an auto sync so we don't need to manually link each invoice to their respective quote?
Why Are Columns Reset When Deleting Entry
Hello, this is quite annoying. We use forms as a questionnaire for candidates, we filter entries by removing columns, when we delete an entry the columns reset. Every "delete" the columns reset, why!? Thank you
Pi or Pie? A slice of infinity in customer service
Hey everyone! While Pi Day is on March 14 (3.14), July 22 marks another special occasion: Pi Approximation Day! On this day, we recognize the mathematical constant π (pi ≈ 22/7); a number that's infinite, irrational, and never-ending. Pi is essential
Configuración
Hola acabo de instalar Zoho CRM y quiero configurarlo correctamente. Al respecto me surgen algunas dudas tales como la diferencia entre: Cuentas, posibles Clientes y Contactos. ¿Conceptualmente que son cada uno? ¿Como se se relacionan entre ellos? Si
Why Can't I add unicode emoji's to my signature?
Why would Zoho Mail prevent me from adding unicode emojis to my email signature? Every time I try to save the signature, Zoho Mail erases the emoji and any nearby content. Every time I setup something with Zoho, I know I'm going to run into some incredibly
GL account associated to each supplier for new bill
Hello I'm facing problem for all items of my bills that are not inventoried. The need is each time I enter new bill and after I select supplier the GL account section is autopopulated with default GL account (that I would like to add in supplier settings)
LinkedIn verification link and otp not receiving
For the last 2 to 3 weeks I'm trying to verify my LinkedIn account to access my company's LinkedIn page, Linkedin is sending verification links and codes to this email address but I have not received any codes or links. Please help me here. Looking forward
Zoho reply to not working. just reply to my self
Hello. i using on my wordpress website a contact form from Wsform. i can set the reply to email there. normally it works. but since i am using your wordpress plugin zoho mail it doesn`t work. its not using the reply to (email from customer). I just can
Mail Merge Stuck in Queue
I am trying to send Mail Merge's and it never sends out to the full list. It always hits a portion and the rest remain in the "Queue" - the emails I am sending are time sensitive, so I need this to be resolved or have a way to push the emails through
SMTP Email Sending Not Working for My Domains and Apps
Hello Zoho Support Team, I am experiencing a critical issue with sending emails via Zoho SMTP for my domain humanhup.com. Both of my applications, HumanHup and CheapUI, are unable to send emails using Zoho SMTP, even though the same setup was working
Receiving too many Spam Leads. Why?
I am receiving so many junk leads from web forms created by zoho's platform. The junk queries are increasing day by day and are affecting our business. I am continuously following up with zoho team from the past one year but not getting any satisfactory
Why is Zoho supporting the Proud Boys?
Hello. This is the only way I can find to contact your company. There is someone in Maine posing as a law enforcement officer, attempting to kidnap immigrants. They are also recruiting for a known hate group. They have an email address hosted by Zoho.com.
Composite Item - Associated/Component Items
I am trying to find the Associated Item/Component Item field in the Composite Item Table in Analytics. Has anyone been able to find and utilize this field in Analytics?
🚀 WorkDrive 5.0: Evolving from a file sharing app to an intelligent content management platform: Phase 2
Hello everyone, WorkDrive's primary focus has always been to provide an intelligent and secure content management platform, simplify collaboration, and be the central repository of files for all Zoho apps. In our previous announcement, we unveiled the
Use openUrl() to edit a specific record
I am working on a queue app for my organization. I have a master queue that is a report of meetings with workflow buttons to manipulate the records. One of these buttons I would like to open the record and edit for the purpose of changing the queue lookup
why i cant access my web without the www
please help me
Send Whatsapp with API including custom placeholders
Is is possible to initiate a session on whatsapp IM channel with a template that includes params (placeholders) that are passed on the API call? This is very usefull to send a Utility message for a transactional notification including an order number
Help Centre Articles in Desk, Zia and iframe
Hi, We embed SOP documents into articles from Scribe into using iframe. We are looking at zia indexing articles to present to agents to aid their work. Please advise if zia can view and learn from the content within the iframe?
Rich Text/WYSIWYG Input Area
I'd like to have an option on ZoHo creator to create an input text area for HTML/rich text formatting. :)
How to create a directory report from one-to-many relationship
Hi all, Newbie here. I'm converting an Access DB to Creator. I've learned Forms are tables and Reports are used to edit table rows, not Forms. I've got the data loaded and can maintain it with the Reports already done. I've done filtering and sorting,
Change Default Selection for Lookup field
I have a Lookup field that I have locked, when I unlock it - the user can select the proper Zone but I need it locked, since this may change based on user selection of another field. Example. There are 3 potential zones. User A selects the Hospital Account
Restrict visibility and user permissions Creator 5
I don't understand how restrict visibility for reports interacts with the already established role permissions. It seems that the default on restrict visibility has everything checked for all users, but I cannot set up different levels of permission for different individuals. Right now I have three different ways to manage users and their access and it's confusing because everything has not migrated to Creator 5. Don't the role permissions extend to the reports as well? Are the selections under
LMS - Why do Trainers have to be Users?
I'm not sure why the software is set up where trainers must be users (i.e., employees). This should really be changed, as there are many cases (the majority of cases for some companies) where classroom trainers are external or contractors. If this is
ZOho mail not stopped working with my domain.
i have changed my name server settings in my domain sigmasquaretec.in . After that my emails are not working with ZOHO.
Request to Cancel Zoho Mail Subscription
Hello Zoho Team, I have migrated to Google Workspace and would like to cancel my Zoho Mail subscription for my organization. Organization Name: AR Creators Media Admin Email: roman@arcreatorsmedia.com Subscription ID: RPUS2005901960812 Please cancel the
zoho smtp limit for free users
What is Zoho SMTP limit for free users?
Mailboxes and Alias Email Addeases - Best Palestine’s and Advice:
Mailboxes and Alias Email Addresses - Best Practices and Advice: what is the best practice for the efficient means to manage And sort, alias, email addresses and third-party after or even the Zoho app itself. I am currently using both Thunderbird and
Has anyone built a discussion forum with a Creator Portal?
I have built a Creator app for organisations to apply for refurbished tools that are sent by a charity. The charity now wants recipient organisations to be able to connect with each other within a region or country, to share advice on maintaining the
Ability for Super Admin to Set Locale Information for Users in Zoho Recruit
Dear Zoho Recruit Team, I hope you're doing well. We would like to request the ability for Super Admins to configure Locale Information (Country/Region, Date Format, and Time Format) for users in Zoho Recruit. Currently these settings are only configurable
Add a block or widget to Zoho Sites that allows users to create an interactive contact card with contact buttons (email, LinkedIn, website, etc)
The proposed feature consists of a pre-designed, customizable block that displays a person's contact information (e.g., a speaker, sales representative, or independent professional) and offers quick access to: Email (icon with mailto: link) LinkedIn profile
Zoho Recruit > Email Templates
Dear All Background: We are using Zoho Recruit for the 4 business units under our group of company it our posting our of Job it will be done via our internal recruiter. In the Email templates, i want to be able to insert the individual business unit,
Zoho Voice & Zoho Recruit/CRM
Hello, I'd love to use Zoho Voice with Recruit and CRM but it would need something very important to me, that has been a game changer to my daily routine, like Calendly has been for scheduling interview. It's call transcription with AI. I'm using Noota
Change start time after starting the timer
Hello Projects Community, an amazing feature would be to change the start time of a running timer. I know this from some other time tracking softwares. Any idea about this? Best wishes Niels
Sending possible. Receiving not possible.
We are not receiving mail in our company email. Could you please solve this. It has been recurring and I want it to be resolved once and for all. Please help.
Problema para enviar y recibir correos
Buenos días, mi cuenta de correo secretaria@construccmauro.com presenta problemas y no me permite ni me envía ni recibe correos, me sale este error.No fue posible enviar el mensaje; Motivo: 554 5.1.8 Correo electrónico bloqueado saliente. Aprende más., Agradezco
Next Page