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