How get phone field (deals) value into my function code?
Hi, i have extension that connect to whatsapp. Zapphub is extension.
my code is working, but phone number is fixed: "5521993449999@c.us"
I need get value that is inside field "whatsapp1" inside deals module
this way, i will run automation everytime that deal is created.
This value is filled in this format: "+5521993449999", so i need remove "+" and add @c.us
this way, value will transform from "+5521993449999" to "5521993449999@c.us"
- // Definir a URL da solicitação
- url = "https://api.zapphub.com/v1/chat/xxxxxxx/chats";
- // Definir os cabeçalhos da solicitação
- headers = map();
- headers.put("Content-Type", "application/json");
- headers.put("Token", "yyyyyyyyyyyyyy");
- // Definir o corpo da solicitação
- body = '{"action":"assign","chats":["5521993449999@c.us"],"params":{"agent":"zzzzzzzzzzzzzz"}}';
- // Realizar a solicitação HTTP
- response = invokeurl(url, "PATCH", body, headers);
- // Verificar e exibir a resposta
- if (response != null && response != "") {
- info response;
- } else {
- info "Erro: Resposta vazia";
- }
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Sticky Posts
Enrich your CRM data and keep them updated
You spend a lot of your time and efforts in generating quality leads for your business. While generating leads is a challenge in itself, the real deal begins when sales reps try to nurture these leads and convert them as customers. So how equipped is your sales team with information about your leads matters a lot. For example, you might be using webforms to generate leads and collect customer information from your website. The lesser your webform fields are, the more your sign-ups right? From optimizing
Zoho CRM Digest - February 2024
We're thrilled to bring you the February digest, packed with exciting product updates and engaging discussions from the Zoho CRM Community. Keep reading to stay in the loop! Product Updates: Zia Enhancements Be it Tasks, Calls, or Meetings, Zia's activity
Canvas templates can now be shared with different CRM organizations
----------------------------------------Moderated on 14th February, 2023------------------------------------------- Dear all, This feature is now open for all users in all DCs. To learn more about importing and exporting canvas templates, read our help
Introducing Zia Presentation in Zoho CRM
----------------------------------------Moderation 2.0, Date: 22nd March' 24----------------------------------------- The Zia Presentation feature is now available for organizations in both Enterprise and Ultimate editions with 20+ user licenses in the
Blueprint enhancements - Parallel and multiple transitions, and more
Last modified on Sep 4, 2023: All Zoho CRM users can now access these enhancements. Initially, these features were available only on an early access basis and by request. However, as of August 2, 2023, they have been made available to all users in all
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Orchestly Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.