title: Add excel custom functions to an existing excel add-in - Javascript Api
body: <p>I have an existing excel add-in with UI (using react) and I would like to add some custom functions to it. When I add the add-ins in separate both work fine but when I try to merge them the custom functions don't appear.</p>
  
  <p>I assume that my issue is on the manifest but I'm not sure what is it: I added the custom functions extension point, added the custom functions bit to the resources Urls and ShortStrings and replaced the html source location of the cf to be the task pane html.</p>
  
  <p>Here is my manifest: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;OfficeApp
            xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
            xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
            xsi:type="TaskPaneApp"&gt;
  
    &lt;!-- Begin Basic Settings: Add-in metadata, used for all versions of Office unless override provided. --&gt;
  
    &lt;!-- IMPORTANT! Id must be unique for your add-in, if you reuse this manifest ensure that you change this id to a new GUID. --&gt;
    &lt;Id&gt;1d9453a6-d50b-4b54-9076-eb0f1d9409c0&lt;/Id&gt;
  
    &lt;!--Version. Updates from the store only get triggered if there is a version change. --&gt;
    &lt;Version&gt;1.0.0.0&lt;/Version&gt;
    &lt;ProviderName&gt;[Provider name]&lt;/ProviderName&gt;
    &lt;DefaultLocale&gt;en-US&lt;/DefaultLocale&gt;
    &lt;!-- The display name of your add-in. Used on the store and various places of the Office UI such as the add-ins dialog. --&gt;
    &lt;DisplayName DefaultValue="Iplicit Excel Add-in" /&gt;
    &lt;Description DefaultValue="[Workbook Add-in description]"/&gt;
  
    &lt;!-- Icon for your add-in. Used on installation screens and the add-ins dialog. --&gt;
    &lt;IconUrl DefaultValue="https://localhost:3000/assets/icon-32.png" /&gt;
    &lt;HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/hi-res-icon.png"/&gt;
  
    &lt;!--If you plan to submit this add-in to the Office Store, uncomment the SupportUrl element below--&gt;
    &lt;!--&lt;SupportUrl DefaultValue="[Insert the URL of a page that provides support information for the app]"&gt;--&gt;
  
    &lt;!-- Domains that will be allowed when navigating. For example, if you use ShowTaskpane and then have an href link, navigation will only be allowed if the domain is on this list. --&gt;
    &lt;AppDomains&gt;
      &lt;AppDomain&gt;AppDomain1&lt;/AppDomain&gt;
      &lt;AppDomain&gt;AppDomain2&lt;/AppDomain&gt;
      &lt;AppDomain&gt;AppDomain3&lt;/AppDomain&gt;
    &lt;/AppDomains&gt;
    &lt;!--End Basic Settings. --&gt;
  
    &lt;!--Begin TaskPane Mode integration. This section is used if there are no VersionOverrides or if the Office client version does not support add-in commands. --&gt;
    &lt;Hosts&gt;
      &lt;Host Name="Workbook" /&gt;
    &lt;/Hosts&gt;
    &lt;DefaultSettings&gt;
      &lt;SourceLocation DefaultValue="https://localhost:3000/index.html" /&gt;
    &lt;/DefaultSettings&gt;
    &lt;!-- End TaskPane Mode integration.  --&gt;
  
    &lt;Permissions&gt;ReadWriteDocument&lt;/Permissions&gt;
  
    &lt;!-- Begin Add-in Commands Mode integration. --&gt;
    &lt;VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0"&gt;
  
      &lt;!-- The Hosts node is required. --&gt;
      &lt;Hosts&gt;
        &lt;!-- Each host can have a different set of commands. --&gt;
        &lt;!-- Excel host is Workbook, Word host is Document, and PowerPoint host is Presentation. --&gt;
        &lt;!-- Make sure the hosts you override match the hosts declared in the top section of the manifest. --&gt;
        &lt;Host xsi:type="Workbook"&gt;
          &lt;!-- Form factor. Currently only DesktopFormFactor is supported. --&gt;
          &lt;DesktopFormFactor&gt;
            &lt;!--"This code enables a customizable message to be displayed when the add-in is loaded successfully upon individual install."--&gt;
            &lt;GetStarted&gt;
              &lt;!-- Title of the Getting Started callout. resid points to a ShortString resource --&gt;
              &lt;Title resid="Contoso.GetStarted.Title"/&gt;
  
              &lt;!-- Description of the Getting Started callout. resid points to a LongString resource --&gt;
              &lt;Description resid="Contoso.GetStarted.Description"/&gt;
  
              &lt;!-- Point to a url resource which details how the add-in should be used. --&gt;
              &lt;LearnMoreUrl resid="Contoso.GetStarted.LearnMoreUrl"/&gt;
            &lt;/GetStarted&gt;
            &lt;!-- Function file is a HTML page that includes the JavaScript where functions for ExecuteAction will be called.
              Think of the FunctionFile as the code behind ExecuteFunction. --&gt;
            &lt;FunctionFile resid="Contoso.DesktopFunctionFile.Url" /&gt;
  
            &lt;!-- PrimaryCommandSurface is the main Office Ribbon. --&gt;
            &lt;ExtensionPoint xsi:type="PrimaryCommandSurface"&gt;
              &lt;!-- Use OfficeTab to extend an existing Tab. Use CustomTab to create a new tab. --&gt;
              &lt;OfficeTab id="TabHome"&gt;
                &lt;!-- Ensure you provide a unique id for the group. Recommendation for any IDs is to namespace using your company name. --&gt;
                &lt;Group id="Contoso.Group1"&gt;
                  &lt;!-- Label for your group. resid must point to a ShortString resource. --&gt;
                  &lt;Label resid="Contoso.Group1Label" /&gt;
                  &lt;!-- Icons. Required sizes 16,32,80, optional 20, 24, 40, 48, 64. Strongly recommended to provide all sizes for great UX. --&gt;
                  &lt;!-- Use PNG icons. All URLs on the resources section must use HTTPS. --&gt;
                  &lt;Icon&gt;
                    &lt;bt:Image size="16" resid="Contoso.tpicon_16x16" /&gt;
                    &lt;bt:Image size="32" resid="Contoso.tpicon_32x32" /&gt;
                    &lt;bt:Image size="80" resid="Contoso.tpicon_80x80" /&gt;
                  &lt;/Icon&gt;
  
                  &lt;!-- Control. It can be of type "Button" or "Menu". --&gt;
                  &lt;Control xsi:type="Button" id="Contoso.TaskpaneButton"&gt;
                    &lt;Label resid="Contoso.TaskpaneButton.Label" /&gt;
                    &lt;Supertip&gt;
                      &lt;!-- ToolTip title. resid must point to a ShortString resource. --&gt;
                      &lt;Title resid="Contoso.TaskpaneButton.Label" /&gt;
                      &lt;!-- ToolTip description. resid must point to a LongString resource. --&gt;
                      &lt;Description resid="Contoso.TaskpaneButton.Tooltip" /&gt;
                    &lt;/Supertip&gt;
                    &lt;Icon&gt;
                      &lt;bt:Image size="16" resid="Contoso.tpicon_16x16" /&gt;
                      &lt;bt:Image size="32" resid="Contoso.tpicon_32x32" /&gt;
                      &lt;bt:Image size="80" resid="Contoso.tpicon_80x80" /&gt;
                    &lt;/Icon&gt;
  
                    &lt;!-- This is what happens when the command is triggered (E.g. click on the Ribbon). Supported actions are ExecuteFunction or ShowTaskpane. --&gt;
                    &lt;Action xsi:type="ShowTaskpane"&gt;
                      &lt;TaskpaneId&gt;ButtonId1&lt;/TaskpaneId&gt;
                      &lt;!-- Provide a url resource id for the location that will be displayed on the task pane. --&gt;
                      &lt;SourceLocation resid="Contoso.Taskpane.Url" /&gt;
                    &lt;/Action&gt;
                  &lt;/Control&gt;
                &lt;/Group&gt;
              &lt;/OfficeTab&gt;
            &lt;/ExtensionPoint&gt;
            &lt;ExtensionPoint xsi:type="CustomFunctions"&gt;
              &lt;Script&gt;
                &lt;SourceLocation resid="JS-URL" /&gt;
              &lt;/Script&gt;
              &lt;Page&gt;
                &lt;SourceLocation resid="Contoso.Taskpane.Url"/&gt;
              &lt;/Page&gt;
              &lt;Metadata&gt;
                &lt;SourceLocation resid="JSON-URL" /&gt;
              &lt;/Metadata&gt;
              &lt;Namespace resid="namespace" /&gt;
            &lt;/ExtensionPoint&gt;
          &lt;/DesktopFormFactor&gt;
        &lt;/Host&gt;
      &lt;/Hosts&gt;
  
      &lt;!-- You can use resources across hosts and form factors. --&gt;
      &lt;Resources&gt;
        &lt;bt:Images&gt;
          &lt;bt:Image id="Contoso.tpicon_16x16" DefaultValue="https://localhost:3000/assets/icon-16.png" /&gt;
          &lt;bt:Image id="Contoso.tpicon_32x32" DefaultValue="https://localhost:3000/assets/icon-32.png" /&gt;
          &lt;bt:Image id="Contoso.tpicon_80x80" DefaultValue="https://localhost:3000/assets/icon-80.png" /&gt;
        &lt;/bt:Images&gt;
        &lt;bt:Urls&gt;
          &lt;bt:Url id="Contoso.Taskpane.Url" DefaultValue="https://localhost:3000/index.html" /&gt;
          &lt;bt:Url id="Contoso.GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812" /&gt;
          &lt;bt:Url id="Contoso.DesktopFunctionFile.Url" DefaultValue="https://localhost:3000/function-file/function-file.html" /&gt;
          &lt;bt:Url id="JSON-URL" DefaultValue="http://localhost:3000/cf/customfunctions.json"/&gt;
          &lt;bt:Url id="JS-URL" DefaultValue="http://localhost:3000/cf/customfunctions.js"/&gt;
        &lt;/bt:Urls&gt;
        &lt;!-- ShortStrings max characters==125. --&gt;
        &lt;bt:ShortStrings&gt;
          &lt;bt:String id="Contoso.TaskpaneButton.Label" DefaultValue="Show Taskpane" /&gt;
          &lt;bt:String id="Contoso.Group1Label" DefaultValue="Commands Group" /&gt;
          &lt;bt:String id="Contoso.GetStarted.Title" DefaultValue="Get started with your sample add-in!" /&gt;
          &lt;bt:String id="namespace" DefaultValue="IPLICIT" /&gt;
        &lt;/bt:ShortStrings&gt;
        &lt;!-- LongStrings max characters==250. --&gt;
        &lt;bt:LongStrings&gt;
          &lt;bt:String id="Contoso.TaskpaneButton.Tooltip" DefaultValue="Click to Show a Taskpane" /&gt;
          &lt;bt:String id="Contoso.GetStarted.Description" DefaultValue="Your sample add-in loaded succesfully. Go to the HOME tab and click the 'Show Taskpane' button to get started." /&gt;
        &lt;/bt:LongStrings&gt;
      &lt;/Resources&gt;
    &lt;/VersionOverrides&gt;
    &lt;!-- End Add-in Commands Mode integration. --&gt;
  
  &lt;/OfficeApp&gt;   
  </code></pre>
  
  <p>And this is a snippet of the html page of the two add-ins:
  <a href="https://i.stack.imgur.com/PZqcG.png" rel="nofollow noreferrer">https://i.stack.imgur.com/PZqcG.png</a></p>