<?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 Favorites webscript not working in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/favorites-webscript-not-working/m-p/306538#M259668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when programming against Alfresco I encountered a problem with the favorites function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the following webscript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/slingshot/doclib/doclist/all/node/alfresco/company/home?filter=favourites" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/slingshot/doclib/doclist/all/node/alfresco/company/home?filter=favourites&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Locally, it return all folders and documents that I marked as favorites. I'm using this information to display the favorites in another page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, the web script is not working on a server. There are no errors or exceptions, but the script simply returns that there are no favorites (emtpy result set). Also the alfresco.log does not show any errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also found out, that the MyFavorites dashlet of the native Alfresco version is not working for the server as it also does not show any favorited documents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Locally, this again is working perfectly fine (&lt;/SPAN&gt;&lt;A href="http://localhost:8081/share/page/context/mine/myfiles#filter=favourites&amp;amp;page=1" rel="nofollow noopener noreferrer"&gt;http://localhost:8081/share/page/context/mine/myfiles#filter=favourites&amp;amp;page=1&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;KingKong&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Aug 2016 11:29:22 GMT</pubDate>
    <dc:creator>kingkong</dc:creator>
    <dc:date>2016-08-07T11:29:22Z</dc:date>
    <item>
      <title>Favorites webscript not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/favorites-webscript-not-working/m-p/306538#M259668</link>
      <description>Hey everybody,when programming against Alfresco I encountered a problem with the favorites function.I'm using the following webscript:http://localhost:8080/alfresco/service/slingshot/doclib/doclist/all/node/alfresco/company/home?filter=favouritesLocally, it return all folders and documents that I ma</description>
      <pubDate>Sun, 07 Aug 2016 11:29:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/favorites-webscript-not-working/m-p/306538#M259668</guid>
      <dc:creator>kingkong</dc:creator>
      <dc:date>2016-08-07T11:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Favorites webscript not working</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/favorites-webscript-not-working/m-p/306539#M259669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure why something working on locally is not working on server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I can see is to get list of favorite documents you are using doclist webscript with parameter. This is the way to get favorite document but not the ideal way. To get list of favorite documents Alfresco providing &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/5.0/pra/1/concepts/pra-favorites-get-favorites.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/5.0/pra/1/concepts/pra-favorites-get-favorites.html&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;REST API &amp;lt;/a&amp;gt;. By using it you can get list of favorite document for particular user.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; &lt;A href="http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/people/gawadesk/favorites" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/people/gawadesk/favorites&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will provide list of favorite document for user mentioned in URL in JSON format. You can always parse that JSON and display in your page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know if this solve your problem. &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 05:34:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/favorites-webscript-not-working/m-p/306539#M259669</guid>
      <dc:creator>gawadesk</dc:creator>
      <dc:date>2016-08-08T05:34:57Z</dc:date>
    </item>
  </channel>
</rss>

