<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Use Rest API to retrieve custom schema results with  Page Provider in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/use-rest-api-to-retrieve-custom-schema-results-with-page/m-p/316985#M3986</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am not sure if you want to know how to search by using the custom schema properties, or if you want to get those properties in the results object. Anyway, I'll explain how to do both:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1) Search by using custom schema properties:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If you have defined your Page Provider using Nuxeo Studio, then, by default, you will have a "Named Parameter" page provider. I mean, you will have something like this: &lt;A href="https://doc.nuxeo.com/nxdoc/search-endpoints/#named-parameter-in-where-clause"&gt;https://doc.nuxeo.com/nxdoc/search-endpoints/#named-parameter-in-where-clause&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;So if you want to use the REST API, you can add the parameters after the "execute". For example:
GET &lt;A href="http://NUXEO_SERVER/nuxeo/api/v1/search/pp/pp_PP_ShipTo/execute?ps_shipto_shipto_effstatus=A&amp;amp;ps_shipto_shipto_customer=0060182404" target="test_blank"&gt;http://NUXEO_SERVER/nuxeo/api/v1/search/pp/pp_PP_ShipTo/execute?ps_shipto_shipto_effstatus=A&amp;amp;ps_shipto_shipto_customer=0060182404&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The name "ps_shipto_shipto_customer" is the same you can see in the Table layout changin the ":" to a low bar.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2) Retrieve custom schema properties:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In this case, you will need to add the "properties" header in your request. Check this: &lt;A href="https://doc.nuxeo.com/nxdoc/special-http-headers/"&gt;https://doc.nuxeo.com/nxdoc/special-http-headers/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
    <pubDate>Sat, 22 Feb 2020 11:15:55 GMT</pubDate>
    <dc:creator>Rodri_</dc:creator>
    <dc:date>2020-02-22T11:15:55Z</dc:date>
    <item>
      <title>Use Rest API to retrieve custom schema results with  Page Provider</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/use-rest-api-to-retrieve-custom-schema-results-with-page/m-p/316984#M3985</link>
      <description>&lt;P&gt;I'm trying to retrieve document custom schema properties via a REST call. I am only able to pull basic document details. I would like to pull the custom schema fields for my document type via rest. Is this possible, and if so how can it be done?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;What's returned Example:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;{"entity-type":"documents","isPaginable":true,"resultsCount":1,"pageSize":10,"maxPageSize":1000,"resultsCountLimit":10000,"currentPageSize":1,"currentPageIndex":0,"currentPageOffset":0,"numberOfPages":1,"isPreviousPageAvailable":false,"isNextPageAvailable":false,"isLastPageAvailable":false,"isSortable":true,"hasError":false,"errorMessage":null,"totalSize":1,"pageIndex":0,"pageCount":1,"entries":[{"entity-type":"document","repository":"default","uid":"cd83d8cc-58bb-4bfc-9ca3-857901da5851","path":"/default-domain/workspaces/MasterData/0100311180","type":"ps_ShipTo","state":"project","parentRef":"e1099e02-f961-457a-a543-a7b7a03a298e","isCheckedOut":true,"isVersion":false,"isProxy":false,"changeToken":"1-0","isTrashed":false,"title":"0100311180","lastModified":"2020-02-21T17:00:31.643Z","facets":[],"schemas":[{"name":"uid","prefix":"uid"},{"name":"common","prefix":"common"},{"name":"dublincore","prefix":"dc"},{"name":"ps_shipto","prefix":"ps_shipto"}]}]}&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;What I'm trying to pull :&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;"dc:source": null,
"dc:publisher": null,
"ps_shipto:shiptp_effstatus": "A",
"ps_shipto:shipto_customer": "0060182404",
"ps_shipto:shipto_product": "1092",
"ps_shipto:shipto_oper_unit": "5915",
"ps_shipto:shipto_bu": "80152",
"ps_shipto:shipto_department": "6200"&lt;/P&gt;
&lt;P&gt;Page Provider table layout
&lt;span class="lia-inline-image-display-wrapper" image-alt="ShipToPageProvider.PNG"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1948iADEC6094349CD99A/image-size/large?v=v2&amp;amp;px=999" role="button" title="ShipToPageProvider.PNG" alt="ShipToPageProvider.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 19:11:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/use-rest-api-to-retrieve-custom-schema-results-with-page/m-p/316984#M3985</guid>
      <dc:creator>Robert_Smith</dc:creator>
      <dc:date>2020-02-21T19:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Use Rest API to retrieve custom schema results with  Page Provider</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/use-rest-api-to-retrieve-custom-schema-results-with-page/m-p/316985#M3986</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am not sure if you want to know how to search by using the custom schema properties, or if you want to get those properties in the results object. Anyway, I'll explain how to do both:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1) Search by using custom schema properties:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If you have defined your Page Provider using Nuxeo Studio, then, by default, you will have a "Named Parameter" page provider. I mean, you will have something like this: &lt;A href="https://doc.nuxeo.com/nxdoc/search-endpoints/#named-parameter-in-where-clause"&gt;https://doc.nuxeo.com/nxdoc/search-endpoints/#named-parameter-in-where-clause&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;So if you want to use the REST API, you can add the parameters after the "execute". For example:
GET &lt;A href="http://NUXEO_SERVER/nuxeo/api/v1/search/pp/pp_PP_ShipTo/execute?ps_shipto_shipto_effstatus=A&amp;amp;ps_shipto_shipto_customer=0060182404" target="test_blank"&gt;http://NUXEO_SERVER/nuxeo/api/v1/search/pp/pp_PP_ShipTo/execute?ps_shipto_shipto_effstatus=A&amp;amp;ps_shipto_shipto_customer=0060182404&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The name "ps_shipto_shipto_customer" is the same you can see in the Table layout changin the ":" to a low bar.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2) Retrieve custom schema properties:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In this case, you will need to add the "properties" header in your request. Check this: &lt;A href="https://doc.nuxeo.com/nxdoc/special-http-headers/"&gt;https://doc.nuxeo.com/nxdoc/special-http-headers/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2020 11:15:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/use-rest-api-to-retrieve-custom-schema-results-with-page/m-p/316985#M3986</guid>
      <dc:creator>Rodri_</dc:creator>
      <dc:date>2020-02-22T11:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Use Rest API to retrieve custom schema results with  Page Provider</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/use-rest-api-to-retrieve-custom-schema-results-with-page/m-p/316986#M3987</link>
      <description>&lt;P&gt;As Rodri suggested, you need to add in your HTTP headers the schemas which should be returned. In your case, what matters is the &lt;CODE&gt;properties&lt;/CODE&gt;  attribute which should be set to &lt;CODE&gt;dublincore,ps_shipto&lt;/CODE&gt; for example.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2020 15:31:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/use-rest-api-to-retrieve-custom-schema-results-with-page/m-p/316986#M3987</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2020-02-22T15:31:20Z</dc:date>
    </item>
  </channel>
</rss>

