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
          Getter and Setter Functions

          Getter and Setter Functions

          Define and control access to simple properties, nested objects, and listed objects by using getter and setter functions.

          Required Editions

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

          To use the function, prefix the name of the property, nested object, or listed object with get or set.

          Note
          Note Always capitalize the first letter of the name of the property, nested object, or listed object.

          Sample Code

          In the Logic action of this process, the setOrderMetaPKey setter function writes the input value, orderMetaPKey, to OrderMetaPKey. OrderMetaPKey is a simple property of the ValidationBo business object.

          <Action name="SetOrderMetaPKey" actionType="LOGIC" call="ProcessContext::ValidationBo.setOrderMetaPKey">
                  <Parameters>
                    <Input name="orderMetaPKey" type="Literal" value="ProcessContext::OrderMetaLookupPKey" />
                  </Parameters>
                  <TransitionTo action="LoadOrderMetaLookup" />
                </Action>
           
          Loading
          Salesforce Help | Article