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
          convertAnsiTime2Time(value)

          convertAnsiTime2Time(value)

          This topic describes the convertAnsiTime2Time(value) function.

          Required Editions

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

          Parameters

          Returns

          Example
          Example
          var me = this;
          
          if(Utils.convertAnsiTime2Time(me.getWorkTimeFrom()) > Utils.convertAnsiTime2Time(me.getWorkTimeThru())){
          
          var newError;
          
          newError = { "level":"error",
          
          objectClass": "BoUserDailyReport",
          
          messageID": "CgcUsrDailyReportWorkTimeFromGreaterThru"
          
          };
          
          messageCollector.add(newError);
           
          Loading
          Salesforce Help | Article