Loading
Scheduled maintenance for Salesforce HelpRead More
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          startPhoneCall(dial)

          startPhoneCall(dial)

          Opens the phone dialer application on the device with the requested phone number to initiate a phone call directly from the Consumer Goods (CG) Cloud offline mobile app.

          Required Editions

          Available in Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled.

          Phone calls are supported by the framework by means of PhoneGap plugins. For phone calls, the device hardware is used. Only smartphones are supported since tablets don’t generally have phone functionality. Furthermore, this solution is purely hardware-based, so VoIP apps such as Skype are also not supported.

          Parameters

          Returns

          result (promise): The API returns a promise.

          Sample Code

          
          Facade.startPhoneCall("0496313035555");
          Facade.startPhoneCall("+1-201-555-0111").then(
          function(ret) { },
          function (err) { }
          

          You can click the Call icon and checking the Phone Call Details dialog to validate whether the same phone number you see on the app is used by the startPhoneCall(dial) method.

           
          Loading
          Salesforce Help | Article