Sharepoint metadata URL
I have a sharepoint server 2016 like the one I show in the attached image.
I want, through a java code, to read the metadata of the document notes.txt
, but I do not know what url endpoint to use for it.
Can someone solve my doubt?
Thank you.
sharepoint-server metadata
add a comment |
I have a sharepoint server 2016 like the one I show in the attached image.
I want, through a java code, to read the metadata of the document notes.txt
, but I do not know what url endpoint to use for it.
Can someone solve my doubt?
Thank you.
sharepoint-server metadata
add a comment |
I have a sharepoint server 2016 like the one I show in the attached image.
I want, through a java code, to read the metadata of the document notes.txt
, but I do not know what url endpoint to use for it.
Can someone solve my doubt?
Thank you.
sharepoint-server metadata
I have a sharepoint server 2016 like the one I show in the attached image.
I want, through a java code, to read the metadata of the document notes.txt
, but I do not know what url endpoint to use for it.
Can someone solve my doubt?
Thank you.
sharepoint-server metadata
sharepoint-server metadata
edited Feb 25 at 10:30
Ganesh Sanap
2,8823825
2,8823825
asked Feb 25 at 10:11
Jacobo RodríguezJacobo Rodríguez
404
404
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can use the SharePoint REST API for files and folders to get the metadata (or content) of the file.
For your example, the server-relative endpoint URL would be:
The file with basic metadata:
/my/personal/KIEWB/_api/web/getfilebyserverrelativeurl('/my/personal/KIEWB/Documentos compartidos/notas.txt')
The file content:
/my/personal/KIEWB/_api/web/getfilebyserverrelativeurl('/my/personal/KIEWB/Documentos compartidos/notas.txt')/$value
The list item metadata for the file:
/my/personal/KIEWB/_api/web/getfilebyserverrelativeurl('/my/personal/KIEWB/Documentos compartidos/notas.txt')/ListItemAllFields
ok, thank you.If I want to add metadata from an external application, should I use these endpoints as well?
– Jacobo Rodríguez
Feb 25 at 10:52
Yes. But of course you will also have to authenticate the user first before you are able to use the endpoint.
– Anon
Feb 25 at 11:00
Yes,I´ve already authenticated. Thank you
– Jacobo Rodríguez
Feb 25 at 11:01
You will need the request/form digest and it would need a two-phase approach to update the data.
– vol7ron
Feb 25 at 15:34
I can do a get of the metadata, and I can also upload a file with my code, but if I try to change the value of a metadata, it shows me a 403 error. This is part of the code:
– Jacobo Rodríguez
Feb 28 at 15:34
|
show 3 more comments
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "232"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsharepoint.stackexchange.com%2fquestions%2f258373%2fsharepoint-metadata-url%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use the SharePoint REST API for files and folders to get the metadata (or content) of the file.
For your example, the server-relative endpoint URL would be:
The file with basic metadata:
/my/personal/KIEWB/_api/web/getfilebyserverrelativeurl('/my/personal/KIEWB/Documentos compartidos/notas.txt')
The file content:
/my/personal/KIEWB/_api/web/getfilebyserverrelativeurl('/my/personal/KIEWB/Documentos compartidos/notas.txt')/$value
The list item metadata for the file:
/my/personal/KIEWB/_api/web/getfilebyserverrelativeurl('/my/personal/KIEWB/Documentos compartidos/notas.txt')/ListItemAllFields
ok, thank you.If I want to add metadata from an external application, should I use these endpoints as well?
– Jacobo Rodríguez
Feb 25 at 10:52
Yes. But of course you will also have to authenticate the user first before you are able to use the endpoint.
– Anon
Feb 25 at 11:00
Yes,I´ve already authenticated. Thank you
– Jacobo Rodríguez
Feb 25 at 11:01
You will need the request/form digest and it would need a two-phase approach to update the data.
– vol7ron
Feb 25 at 15:34
I can do a get of the metadata, and I can also upload a file with my code, but if I try to change the value of a metadata, it shows me a 403 error. This is part of the code:
– Jacobo Rodríguez
Feb 28 at 15:34
|
show 3 more comments
You can use the SharePoint REST API for files and folders to get the metadata (or content) of the file.
For your example, the server-relative endpoint URL would be:
The file with basic metadata:
/my/personal/KIEWB/_api/web/getfilebyserverrelativeurl('/my/personal/KIEWB/Documentos compartidos/notas.txt')
The file content:
/my/personal/KIEWB/_api/web/getfilebyserverrelativeurl('/my/personal/KIEWB/Documentos compartidos/notas.txt')/$value
The list item metadata for the file:
/my/personal/KIEWB/_api/web/getfilebyserverrelativeurl('/my/personal/KIEWB/Documentos compartidos/notas.txt')/ListItemAllFields
ok, thank you.If I want to add metadata from an external application, should I use these endpoints as well?
– Jacobo Rodríguez
Feb 25 at 10:52
Yes. But of course you will also have to authenticate the user first before you are able to use the endpoint.
– Anon
Feb 25 at 11:00
Yes,I´ve already authenticated. Thank you
– Jacobo Rodríguez
Feb 25 at 11:01
You will need the request/form digest and it would need a two-phase approach to update the data.
– vol7ron
Feb 25 at 15:34
I can do a get of the metadata, and I can also upload a file with my code, but if I try to change the value of a metadata, it shows me a 403 error. This is part of the code:
– Jacobo Rodríguez
Feb 28 at 15:34
|
show 3 more comments
You can use the SharePoint REST API for files and folders to get the metadata (or content) of the file.
For your example, the server-relative endpoint URL would be:
The file with basic metadata:
/my/personal/KIEWB/_api/web/getfilebyserverrelativeurl('/my/personal/KIEWB/Documentos compartidos/notas.txt')
The file content:
/my/personal/KIEWB/_api/web/getfilebyserverrelativeurl('/my/personal/KIEWB/Documentos compartidos/notas.txt')/$value
The list item metadata for the file:
/my/personal/KIEWB/_api/web/getfilebyserverrelativeurl('/my/personal/KIEWB/Documentos compartidos/notas.txt')/ListItemAllFields
You can use the SharePoint REST API for files and folders to get the metadata (or content) of the file.
For your example, the server-relative endpoint URL would be:
The file with basic metadata:
/my/personal/KIEWB/_api/web/getfilebyserverrelativeurl('/my/personal/KIEWB/Documentos compartidos/notas.txt')
The file content:
/my/personal/KIEWB/_api/web/getfilebyserverrelativeurl('/my/personal/KIEWB/Documentos compartidos/notas.txt')/$value
The list item metadata for the file:
/my/personal/KIEWB/_api/web/getfilebyserverrelativeurl('/my/personal/KIEWB/Documentos compartidos/notas.txt')/ListItemAllFields
answered Feb 25 at 10:39
AnonAnon
7069
7069
ok, thank you.If I want to add metadata from an external application, should I use these endpoints as well?
– Jacobo Rodríguez
Feb 25 at 10:52
Yes. But of course you will also have to authenticate the user first before you are able to use the endpoint.
– Anon
Feb 25 at 11:00
Yes,I´ve already authenticated. Thank you
– Jacobo Rodríguez
Feb 25 at 11:01
You will need the request/form digest and it would need a two-phase approach to update the data.
– vol7ron
Feb 25 at 15:34
I can do a get of the metadata, and I can also upload a file with my code, but if I try to change the value of a metadata, it shows me a 403 error. This is part of the code:
– Jacobo Rodríguez
Feb 28 at 15:34
|
show 3 more comments
ok, thank you.If I want to add metadata from an external application, should I use these endpoints as well?
– Jacobo Rodríguez
Feb 25 at 10:52
Yes. But of course you will also have to authenticate the user first before you are able to use the endpoint.
– Anon
Feb 25 at 11:00
Yes,I´ve already authenticated. Thank you
– Jacobo Rodríguez
Feb 25 at 11:01
You will need the request/form digest and it would need a two-phase approach to update the data.
– vol7ron
Feb 25 at 15:34
I can do a get of the metadata, and I can also upload a file with my code, but if I try to change the value of a metadata, it shows me a 403 error. This is part of the code:
– Jacobo Rodríguez
Feb 28 at 15:34
ok, thank you.If I want to add metadata from an external application, should I use these endpoints as well?
– Jacobo Rodríguez
Feb 25 at 10:52
ok, thank you.If I want to add metadata from an external application, should I use these endpoints as well?
– Jacobo Rodríguez
Feb 25 at 10:52
Yes. But of course you will also have to authenticate the user first before you are able to use the endpoint.
– Anon
Feb 25 at 11:00
Yes. But of course you will also have to authenticate the user first before you are able to use the endpoint.
– Anon
Feb 25 at 11:00
Yes,I´ve already authenticated. Thank you
– Jacobo Rodríguez
Feb 25 at 11:01
Yes,I´ve already authenticated. Thank you
– Jacobo Rodríguez
Feb 25 at 11:01
You will need the request/form digest and it would need a two-phase approach to update the data.
– vol7ron
Feb 25 at 15:34
You will need the request/form digest and it would need a two-phase approach to update the data.
– vol7ron
Feb 25 at 15:34
I can do a get of the metadata, and I can also upload a file with my code, but if I try to change the value of a metadata, it shows me a 403 error. This is part of the code:
– Jacobo Rodríguez
Feb 28 at 15:34
I can do a get of the metadata, and I can also upload a file with my code, but if I try to change the value of a metadata, it shows me a 403 error. This is part of the code:
– Jacobo Rodríguez
Feb 28 at 15:34
|
show 3 more comments
Thanks for contributing an answer to SharePoint Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsharepoint.stackexchange.com%2fquestions%2f258373%2fsharepoint-metadata-url%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown