cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve Document id after uploading document into sharePoint using java

Former Member
0 Kudos

I need to save document id with other information into oracle database. how do i get document id from sharePoint after uploaded a document into sharePoint.

i am using java HttpClient. could you please advice me how we can do it using java.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

go to Site Settingsand under Site Collection Administration > Site collection features, we need to activate Document Id service. A scheduled job generally assigns document ids to all document existing in SharePoint.

Next we can use the endpoint /GetFileByServerRelativeUrl(filePath)/ListItemAllFields to get the document id via SharePoint REST API.

Regards,

Adrian Gates

Jr. SharePoint Admin - Apps4Rent