Microsoft SharePoint · Arazzo Workflow
SharePoint Ensure a List Item Exists
Version 1.0.0
Find an item by title and create it only when missing, then read it back.
View Spec
View on GitHub
CollaborationDocument ManagementEnterprise Content ManagementIntranetMicrosoftArazzoWorkflows
Provider
Workflows
ensure-list-item
Idempotently ensure a single list item with a given title exists.
Resolves the list, searches it for an item matching the title, creates the item when absent, and reads back whichever item now exists.
1
resolveList
getListByTitle
Confirm the target list exists before reading or writing items, and capture its id for logging and correlation.
2
findItem
getListItems
Filter the list for an item whose Title equals the supplied value, returning at most one match. Title is not unique in SharePoint by default, so this treats the first match as authoritative.
3
createItem
createListItem
Create the item because no existing item carried the supplied title.
4
readBackCreated
getListItemById
Fetch the newly created item by id to capture the server-assigned Created, Modified, and AuthorId values, then end the workflow so the already-existed branch does not also run.
5
readBackExisting
getListItemById
Fetch the pre-existing matched item by id so both branches return the same shape to the caller.