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
          isEmptyString(variable)

          isEmptyString(variable)

          Returns true if the argument is emptyString, blank, null, or undefined. Otherwise, returns false.

          Required Editions

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

          Parameters

          Variable

          Returns

          True or false

          Example
          Example //Sets original responsible if a call is created in substitution.
          if(!Utils.isEmptyString(substitutedUsrPKey)) {
          me.setResponsiblePKey(substitutedUsrPKey);
          } else {
          if(Utils.isEmptyString(me.getResponsiblePKey())) {
          me.setResponsiblePKey(ApplicationContext().get('user').getPKey());
          }
          }
           
          Loading
          Salesforce Help | Article