# Adding the 1st dial in number for 3 countries - one tap mobile, and dial by location

**URL:** <https://devforum.zoom.us/t/adding-the-1st-dial-in-number-for-3-countries-one-tap-mobile-and-dial-by-location/39419>\
**Category:** API and Webhooks\
**Created:** [December 30, 2020, 9:53am UTC](https://devforum.zoom.us/t/adding-the-1st-dial-in-number-for-3-countries-one-tap-mobile-and-dial-by-location/39419 "2020-12-30T09:53:03Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZoomZoom1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoomzoom1/32/20769_2.png) [@ZoomZoom1](https://devforum.zoom.us/u/ZoomZoom1)\
**Post date:** [December 30, 2020, 9:53am UTC](https://devforum.zoom.us/t/adding-the-1st-dial-in-number-for-3-countries-one-tap-mobile-and-dial-by-location/39419/1 "2020-12-30T09:53:03Z")

</div>

Hi all,

1st post from me, as I was recommended to post in this channel by Zoom support.

I’m not a strong scripter, although I can understand/write simple scripts. I’m trying to edit the ‘meeting schedule email’ template under branding settings, and I can’t quite get it to do what I want. Using the 2 links below, but I can’t quite manage to merge multiple examples of script together to get the desired result.  
Links:

> **[Customizing global dial-in countries in meeting email templates](https://support.zoom.us/hc/en-us/articles/115004407303-Customizing-global-dial-in-countries-in-meeting-email-templates)**
>
> Overview
> Meeting and webinar invite emails will utilize the specified global dial-in numbers. Account owners and admins can customize how these numbers are displayed in the meeting and webinar invi...

> **[Variables for email templates](https://support.zoom.us/hc/en-us/articles/200554369)**
>
> Overview
> Below is a list of variables and their types, availability, and usages that are available for use in the custom email templates in the Branding and account settings sections of the Zoom we...

The result I’m looking for is to have includes the first number (or a specific number) for each of 3 countries - from the list of countries already selected in my account:  
 is inviting you to a scheduled Zoom meeting.

* * *

Join Zoom Meeting  
-Zoom link to meeting displays here-

Meeting ID: -meeting ID-  
Passcode: -passcode-  
One tap mobile  
+442080806592,meeting ID#,\*passcode# United Kingdom  
+16465588656,meeting ID#,\*passcode# United States  
+496971049922,meeting ID#,\*passcode# Germany

Dial by your location  
+44 208 080 6592 United Kingdom  
+1 646 558 8656 US (New York)  
+49 69 7104 9922 Germany  
Meeting ID: -meeting ID-  
Passcode: -passcode-  
-Link to other dial in numbers-

* * *

Any advice anyone can give would be really helpful.

Thanks  
Andy

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [December 30, 2020, 10:01pm UTC](https://devforum.zoom.us/t/adding-the-1st-dial-in-number-for-3-countries-one-tap-mobile-and-dial-by-location/39419/2 "2020-12-30T22:01:26Z")

</div>

Hey @ZoomZoom1,

Thank you for reaching out to the Zoom Developer Forum. This is a great question! Are you able to provide the template that you are using as well as an example of what the output of that template is? I’ll help you to create a working template from there.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![ZoomZoom1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoomzoom1/32/20769_2.png) [@ZoomZoom1](https://devforum.zoom.us/u/ZoomZoom1)\
**Post date:** [December 31, 2020, 5:44pm UTC](https://devforum.zoom.us/t/adding-the-1st-dial-in-number-for-3-countries-one-tap-mobile-and-dial-by-location/39419/3 "2020-12-31T17:44:55Z")

</div>

Thanks Max,

The template I’m editing is specifically the ‘Meeting Schedule Email’ template.

Then I’ve tried to use examples from here: [https://support.zoom.us/hc/en-us/articles/115004407303-Customizing-global-dial-in-countries-in-meeting-email-templates](https://support.zoom.us/hc/en-us/articles/115004407303-Customizing-global-dial-in-countries-in-meeting-email-templates)

To try and do what I want.

Initially I tried to understand the syntax for the following:

![image001.png[51].png](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/2/e243f62676a91397c8b4127f24f930572f3de61c.png)

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [December 31, 2020, 8:47pm UTC](https://devforum.zoom.us/t/adding-the-1st-dial-in-number-for-3-countries-one-tap-mobile-and-dial-by-location/39419/4 "2020-12-31T20:47:36Z")

</div>

Hey @ZoomZoom1,

Thank you for the update. Looking at the [template documentation](https://support.zoom.us/hc/en-us/articles/115004407303-Customizing-global-dial-in-countries-in-meeting-email-templates) that you referenced, there is a section that provides a template example that seems to cover what you’re after.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/5/b5d7099db81ae5e357c8774bf9ccf1e3cb802b1d.png)

Does that seem to match what you’re after and have you tried implementing that example? If so, did you encounter any issues?

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![ZoomZoom1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoomzoom1/32/20769_2.png) [@ZoomZoom1](https://devforum.zoom.us/u/ZoomZoom1)\
**Post date:** [January 3, 2021, 10:18am UTC](https://devforum.zoom.us/t/adding-the-1st-dial-in-number-for-3-countries-one-tap-mobile-and-dial-by-location/39419/5 "2021-01-03T10:18:02Z")

</div>

Hi Max,

I tried that example and it displays 3 numbers for each of the 3 countries - so 9 numbers in total.

I also had a go at trying to change the syntax to just show 1 number per country but alas I wasn’t able to get it alright.

Thanks for your help

Cheers  
Andy

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [January 4, 2021, 8:50pm UTC](https://devforum.zoom.us/t/adding-the-1st-dial-in-number-for-3-countries-one-tap-mobile-and-dial-by-location/39419/6 "2021-01-04T20:50:15Z")

</div>

Hey @ZoomZoom1,

Thank you for your testing that and getting back to me. Do you get the expected result if you only use the first statement of that example?

For instance my understanding is that the following would display only one number per country:

```auto
${pickedNumbers[0].countryName!'US'}: ${pickedNumbers[0].displayNumber?replace(' ','')?replace('(0)','')},,${number?c}# <#if pickedNumbers[0].free>(Toll-free)</#if>

```

Let me know if that helps.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![ZoomZoom1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoomzoom1/32/20769_2.png) [@ZoomZoom1](https://devforum.zoom.us/u/ZoomZoom1)\
**Post date:** [January 8, 2021, 4:10pm UTC](https://devforum.zoom.us/t/adding-the-1st-dial-in-number-for-3-countries-one-tap-mobile-and-dial-by-location/39419/7 "2021-01-08T16:10:35Z")

</div>

Thanks Max,

I really appreciate your help with this.

That code shows just 1 number, the 1st number for the UK.

I’d like to show the first number for the UK, US and Germany (those are the 1st 3 countries already setup on our account).

Thanks

Andy

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [January 8, 2021, 10:23pm UTC](https://devforum.zoom.us/t/adding-the-1st-dial-in-number-for-3-countries-one-tap-mobile-and-dial-by-location/39419/8 "2021-01-08T22:23:16Z")

</div>

Hey @ZoomZoom1,

Sorry for not being too specific on the responses, I don’t have a way to test this on my end. I’m working on setting that up so that I can provide more specifics. If you add that line three times while incrementing the `pickedNumbers[0]` field does that provide the expected result?

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![ZoomZoom1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoomzoom1/32/20769_2.png) [@ZoomZoom1](https://devforum.zoom.us/u/ZoomZoom1)\
**Post date:** [January 13, 2021, 5:39pm UTC](https://devforum.zoom.us/t/adding-the-1st-dial-in-number-for-3-countries-one-tap-mobile-and-dial-by-location/39419/9 "2021-01-13T17:39:25Z")

</div>

Thanks Max,

Yes that just about does the trick. I’ll need to spend some more time with that code to make it look how I want with the passcodes, and one tap mobile dial in, but the phone numbers work as I wanted them

Thanks for your help

Cheers

Andy

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [January 14, 2021, 8:48pm UTC](https://devforum.zoom.us/t/adding-the-1st-dial-in-number-for-3-countries-one-tap-mobile-and-dial-by-location/39419/10 "2021-01-14T20:48:20Z")

</div>

Hey @ZoomZoom1,

I’m glad to hear that I was able to help! Let me know if you need any assistance formatting the passcodes as I have the tools to test this setup now.

On that same note, feel free to reach out if you encounter any other issues or questions!

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [February 14, 2021, 6:48am UTC](https://devforum.zoom.us/t/adding-the-1st-dial-in-number-for-3-countries-one-tap-mobile-and-dial-by-location/39419/11 "2021-02-14T06:48:30Z")

</div>

Closed on February 14, 2021, 6:48am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
