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
          getObjectAsync(objectClass, jsonQuery)

          getObjectAsync(objectClass, jsonQuery)

          Load an object from the database. The result is a JSON object representation of the loaded object.

          Required Editions

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

          Parameters

          objectClass
          Type: String
          The class of the object to load.
          jsonQuery
          Type: JSON Object
          Load parameters as a dictionary of parameterName:value.

          Return Value

          JSON object representation of the loaded object.

          Example
          Example
          var me = this;
           var deferred =when.defer();
           var jsonParams = [];
           var jsonQuery = {};
           jsonParams.push( { "field": "ProductPKey", "value" : prdMainPKey });
           jsonParams.push( { "field": "UnitType", "value" :newUnit });
           jsonQuery.params = jsonParams;
           Facade.getObjectAsync("LuLogisticUnit",jsonQuery )
           then(function(lookupData) {
           var luLogisticUnit = BoFactory.instantiate("LuLogisticUnit",lookupData); 
          deferred.resolve(luLogisticUnit.getPiecesPerSmallestUnit());
          
           });
          
           var result =deferred.promise;
          
           
          Loading
          Salesforce Help | Article