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

          updateShortDuration(timerId, duration)

          This function updates the short timer duration.

          Required Editions

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

          The short timer isn’t restarted from the current time. The new end time is calculated as: start date + new duration. If updateshortDuration() is called with a non-existent timer ID, timer isn’t created and false value is returned. If the short 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 short timer.
          • duration: is the duration of timer in seconds.

          Returns

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