Skip to main content

I develop a process that kicks off when a new list item is added into a SharePoint list.  I now want to update the list item metadata.


I have seen a few posts regarding this topic, am I correct in saying there is no way of getting the list item id in a SharePoint integration process from the process data?


Is my only option to search the metadata to find the ID or is there a better way to approach this?


Any suggestions would be appreciated.


 

Thanks for the response Blake 


I am running a sharepoint events process, my process does not have any process datat fields and I only have the following XML fields: EventDetails, SPEventFields.  The SPEventsFieklds does have a item id <Items Type="Documents"><Item ID="1"> but it is always 1.


I am not sure if this is due to the reason that this is an email enabled document library, so the type="Document".


The process wizard does pick  it up as a list.  My source type is list item.


I have also tried to search for the list item and I get it back, but the ID always comes back as 1.


SPEventsField xml:


<Items Type="Documents"><Item ID="1"><SiteURL>http://cptsrvdev003:8086/accounting</SiteURL><ListURL>Accounts Pod 1 Mail</ListURL><Folder /><Item>henk.eml</Item><URL>http://cptsrvdev003:8086/accounting/Accounts Pod 1 Mail/Henk Barnard (Henk.Barnard@1stcontact.com)/henk.eml</URL><Source /></Item></Items> 


 


Thanks Blake


So you say when you create a sharepoint evetns process on a standard list, you get the correct list item ID back, I have tried to change my list to a stndard list (Tasks), but my list item ID still comes back as 1.


Maybe I am doing something wrong?


 


Hi,


Ok, so, how do we get the item ID of an item in a document library, using the SharePoint search event then? Because if this doesn't work, and <Item> node contains the item title rather than the ID... then the only way I see is to write and consume a web service to do this for you.


Reply