Sharepoint metadata URL












4















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.



My Sharepoint site










share|improve this question





























    4















    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.



    My Sharepoint site










    share|improve this question



























      4












      4








      4








      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.



      My Sharepoint site










      share|improve this question
















      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.



      My Sharepoint site







      sharepoint-server metadata






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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






















          1 Answer
          1






          active

          oldest

          votes


















          6














          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








          share|improve this answer
























          • 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











          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
          });


          }
          });














          draft saved

          draft discarded


















          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









          6














          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








          share|improve this answer
























          • 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
















          6














          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








          share|improve this answer
























          • 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














          6












          6








          6







          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








          share|improve this answer













          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









          share|improve this answer












          share|improve this answer



          share|improve this answer










          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



















          • 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


















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

          ComboBox Display Member on multiple fields

          Is it possible to collect Nectar points via Trainline?