Get Item from List

shortcuts-action-icon-get-item-from-list.webp

Returns one or more items from the list passed as input. You can get the first item, the last item, a random item, the item at a particular index, or items in a range of indexes.

Score
Type
InterActivity
Expertise
4/5
Type
InterActivity
Expertise

Action Information

Parameters

Get [First Item, Last Item, Random Item, Item At Index, Items in Range from Start Index to End Index] from [List]

Input

Anything

Result

Anything

Details

Type
Interactivity
Expertise Needed
Matthew's Score
4/5
Category
Date Added
11/12/2014
Identifier
is.workflow.actions.getitemfromlist

Notes

Note
Lists are one-indexed, so the first item is at index 1, the second is at index 2, etc.

Works Well With

shortcuts-action-icon-repeat-with-each.webp
Repeat with Each
Takes a list of items as input, and runs the contained actions once for each item in the list.
shortcuts-action-icon-get-group-from-matched-text.webp
Get Group from Matched Text
Gets the text that matched a particular capture group or all of the capture groups from the output of a Match Text action.

Shortcuts Using This

shortcut-grab-youtube-playlist-id-icon.png
Grab YouTube playlist ID
For a given YouTube video passed in as input, this isolates the URL parameter after “list=“ that represents a video playlist ID.
shortcut-send-thank-yous-icon.png
Send thank-yous
Asks you to pick from your contacts, then shows a Messages window for each so you can send a thank-you message.
shortcut-check-for-a-white-christmas-icon.png
Check for a white christmas
Looks for snow in the daily forecast for the next 10 days.