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
          getNextListItemPKey (record)

          getNextListItemPKey (record)

          Returns the PKey value of the next item in the list.

          Required Editions

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

          Parameters

          record: Object. List item in the list.

          Returns

          PKey value of the next visible item in the list or null if <record> was the last item.

          Remarks

          • The same method exists for getPreviousListItemPKey, getLastItemPKey, and getFirstItemPKey.
          • The methods getNextListItem, getPreviousListItem, getLastListItem, and getFirstListItem return the item rather than the PKey value.
          Example
          Example
          <Action name="GetNextSelectedListItem" actionType="LOGIC" call="ProcessContext::DailyReportList.getNextListItemPKey">
            <Parameters><Input name="record" value="ProcessContext::CurrentListItem" />
            </Parameters>
            <Return name="ProcessContext::NextSelectedListItem" />
            <TransitionTo action="ReloadDailyReportList" />
          </Action>
           
          Loading
          Salesforce Help | Article