Loading
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
          updateDuration(timerId, duration)

          updateDuration(timerId, duration)

          This function updates the timer duration.

          Required Editions

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

          The timer isn’t restarted from the current time. The new end time is calculated as: start date + new duration. If updateDuration() is called with a non-existent timer ID, timer isn’t created and false value is returned. If the timer was stopped and restarted, then duration= (restart date + new duration) - elapsed time before stop.

          Parameters

          • timerId: is the internal name used to refer to the timer.
          • duration: is the duration of timer in minutes.

          Returns

          • true: returns true value if the update duration is successful.
          • false: returns false if the function is called with a non-existent timer.
           
          Loading
          Salesforce Help | Article