I'm trying to use the
LookupSPListItemId activity in a SharePoint 2013 workflow in Visual Studio. The condition I'm trying to set is when a person field equals a specific person.
The problem is I'm not sure what the format of the person parameter should be (which needs to be a string according to Visual Studio)
I have tried the user's ID (i.e. 2 as a string).
I have tried the user's login ID (i.e. domain\username)
I have tried the user's name (i.e. Joe Bloggs)
I have tried the user's claims login
When debugging with Visual Studio I can see in the workflow debugger output window an error occurs, presumably because I'm not passing in the correct parameter in the correct format.
This is the error I am seeing:
Retrying last request. Next attempt scheduled after 02/01/2015 17:18. Details of last request: HTTP BadRequest to
http://server/sites/sc3/leave/_vti_bin/client.svc/web/lists/getbyid(guid'ebac8268-e9be-4cde-9573-ae242333f5bd')/Items?%24filter=PersonId+eq+'2'&%24select=ID%2CIDCorrelation Id: e649d849-9499-a1bc-9412-93930eb5f845 Instance Id: 98f7ec21-4381-4e9d-be20-1c094e02fff6