I want try to get Infopath form id after add to form library by following code
spFile = fileLibrary.Files.Add(fileName, fileContents, replaceExistingFiles);
and I can't access spFile.Item.Id
because I added file to form library and I receive this error:
The object specified does not belong to a list.
Is there any efficient way to get id by name? I tried to get id by file URL but there is no Item.Id
again.
spFile.Item.ID