Get a SharePoint list item GUID using a SharePoint Designer workflow

Learn how you can use a SharePoint Designer workflow to retrieve the GUID of a list item in SharePoint whether it is the current item the workflow is running on or a new list item that was created through the workflow.

ADVERTISEMENTS

GUIDs are the next best thing after IDs for being able to uniquely identify SharePoint list items, so you could use a GUID instead of an ID to look up a SharePoint list item.

There are two occasions on which you might want to get the value of a GUID of a SharePoint list item in a SharePoint Designer workflow:

  1. If you want to look up the GUID for the Current Item the workflow is running on.
  2. If you want to look up the GUID for a new item that you created through the workflow by using the Create List Item action.

Look up the GUID of a SharePoint list item in the Current Item

The GUID of the Current Item is pretty straightforward to look up. All you’d have to do is create a Workflow variable to save the value of the GUID column on the Current Item in and/or directly look up and use the value of the GUID column on the Current Item in your workflow.

The following video tutorial shows you how to retrieve the GUID of the Current Item in a SharePoint Designer workflow. It writes the value of the GUID to the workflow history for debugging purposes.

Look up the GUID of a SharePoint list item in an external SharePoint list

The Create List Item action always returns an ID for the newly created SharePoint list item. You can use this ID to look up the value of the GUID column in the SharePoint list that the new item was created in.

The following video tutorial shows you how to get the GUID of a newly created list item in a SharePoint Designer workflow.

Related Articles

ADVERTISEMENTS