Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

How to find ListItemId in Lists.Addattachment method...

  Asked By: Raghav    Date: Oct 30    Category: Sharepoint    Views: 2678

I am trying to upload a file in to share point portal server with
the help of web services (Lists) using ASP.Net as UI.
I could able to create new List programatically but when i want to
attach a file in that created list with the help of AddAttachment
method...I am getting problem to identify 2nd argument of
Addattachment method(listItemId)..what would be the significant of
this ID....I have tried GUID in this place but failed to solve the

From Where i can get this listItemId or which services ....i have to
use web services only....

If u need more clearification to get this problem plase let me



1 Answer Found

Answer #1    Answered By: Jerad Mercado     Answered On: Oct 30

Attachments are not made to the list  but to a specific item in the list. You'll
need to add at least one list item, then you can get the item id by getting all
the list items from the web  service.

Didn't find what you were looking for? Find more on How to find ListItemId in Lists.Addattachment method... Or get search suggestion and latest updates.