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
          BusinessObjectHelper Contract

          BusinessObjectHelper Contract

          Use the BoHelper contract in special functions that aren’t bound to an object and don’t require a dedicated data source. For example, to calculate the business between two cities.

          Required Editions

          Available in: Enterprise, Performance, and Unlimited Editions

          The BusinessObjectHelper (BoHelper) contract is similar to a business object contract but without a data source. You can use BoHelper to host utils functions that are used in different files and that don't require the implementation of the same function in each single business object. The name attribute in the BusinessObjectHelper root specifies the unique class name. Like in the case of a Business Object contract, the sub nodes in the BusinessObjectHelper contract are simple properties and JavaScript methods. The BoHelper contract doesn’t support the NestedObjects, nested ListObjects, and ObjectLookups sub nodes. This contract supports a single standard CreateAsync method.

          Sample code

          <BusinessObjectHelper name="BoHelperSimplePricingCalculator" schemaVersion="1.1">
            <SimpleProperties>
              <SimpleProperty name="pKey" type="DomPKey" />
            </SimpleProperties>
            <Methods>
              <Method name="beforeCreateAsync" />
              <Method name="afterCreateAsync" />
              <Method name="createAsync" />
              <Method name="calculateItemValue" />
              <Method name="calculateHeaderValue" />
            </Methods>
          </BusinessObjectHelper>
          
           
          Loading
          Salesforce Help | Article