<?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: How to Call Remote API from ADF in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-call-remote-api-from-adf/m-p/19225#M8509</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;do you get an answer to this ?&lt;/P&gt;&lt;P&gt;I have the same problem wirth adw wher we try to add a button with a call to a web script and nothing seems to work anymore.&lt;/P&gt;&lt;P&gt;We have no way to call the custom webscript we made on previous versions of Alfresco which were integrated in share !&lt;/P&gt;&lt;P&gt;Please, we need help.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Regis&lt;/P&gt;</description>
    <pubDate>Fri, 08 Sep 2023 14:01:05 GMT</pubDate>
    <dc:creator>rbaudu</dc:creator>
    <dc:date>2023-09-08T14:01:05Z</dc:date>
    <item>
      <title>How to Call Remote API from ADF</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-call-remote-api-from-adf/m-p/19218#M8502</link>
      <description>HelloI have configure my adf with alfresco by giving Ip address like xxx.xxx.x.x:8080 and i am also able to login.Now I am trying to call custom webscript from adf using below api import&amp;nbsp;*&amp;nbsp;as&amp;nbsp;AlfrescoApi&amp;nbsp;from&amp;nbsp;'alfresco-js-api'; alfrescoJsApi:&amp;nbsp;any; constructor(private&amp;nbsp;apiService:&amp;nbsp;AlfrescoApiService)</description>
      <pubDate>Fri, 21 Dec 2018 12:28:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-call-remote-api-from-adf/m-p/19218#M8502</guid>
      <dc:creator>vidhipanchal</dc:creator>
      <dc:date>2018-12-21T12:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Call Remote API from ADF</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-call-remote-api-from-adf/m-p/19219#M8503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi the problem in your code is that you are instantiating a new alfrescoApi when you do :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #000000; background-color: #f6f6f6; border: 0px; font-size: 14px;"&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;alfrescoJsApi &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;AlfrescoApi&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; provider&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'ALL'&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;and this API&amp;nbsp;new object is missing of configuration of the ecmHost that you should pass in the constructor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, you are already anyway injecting the ADF&amp;nbsp;AlfrescoApiService in the constructor when you do&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #000000; border: 0px; font-size: 14px;"&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;constructor&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;private&lt;/SPAN&gt; apiService&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; AlfrescoApiService&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&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;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;and you could use that instance&amp;nbsp;of the js-api&amp;nbsp;to do your job:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;constructor&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;private&lt;/SPAN&gt; apiService&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; AlfrescoApiService&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;apiService&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getInstance&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;webScripti&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;executeWebScript&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'GET'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'api/task-instances?authority='&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;authService&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getEcmUsername&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍&lt;BR /&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2018 15:51:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-call-remote-api-from-adf/m-p/19219#M8503</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2018-12-21T15:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to Call Remote API from ADF</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-call-remote-api-from-adf/m-p/19220#M8504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugenio Romano,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the difference between "&lt;SPAN style="color: #000000; background-color: #f6f6f6;"&gt;alfrescoJsApi.core.webscriptApi&lt;/SPAN&gt;" and "&lt;SPAN style="color: #000000; background-color: #f6f6f6;"&gt;apiService.getInstance().webScript&lt;/SPAN&gt;"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vidhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2018 05:16:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-call-remote-api-from-adf/m-p/19220#M8504</guid>
      <dc:creator>vidhipanchal</dc:creator>
      <dc:date>2018-12-24T05:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Call Remote API from ADF </title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-call-remote-api-from-adf/m-p/19221#M8505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first is a new instance that you are going to declare&amp;nbsp;that is nor initialized by ADF and you need to configure it and handle the lifecycle.&lt;/P&gt;&lt;P&gt;The second is an instance created by ADF when bootstrap the core. It gets the configuration from the app.config.json of the framework and you can consume it without care about the lifecycle&amp;nbsp;of it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2018 15:04:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-call-remote-api-from-adf/m-p/19221#M8505</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2018-12-28T15:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to Call Remote API from ADF</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-call-remote-api-from-adf/m-p/19222#M8506</link>
      <description>&lt;P&gt;I tried&lt;/P&gt;&lt;PRE&gt;constructor(private apiService: AlfrescoApiService) {
 this.apiService.getInstance().webScripti.executeWebScript('GET', 'api/task-instances?authority=' +   this.authService.getEcmUsername())‍
}&lt;/PRE&gt;&lt;P&gt;The terminal said:&lt;/P&gt;&lt;P&gt;error TS2339: Property 'webScript' does not exist on type 'AlfrescoApi'.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 07:17:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-call-remote-api-from-adf/m-p/19222#M8506</guid>
      <dc:creator>Upladder</dc:creator>
      <dc:date>2022-02-01T07:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to Call Remote API from ADF</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-call-remote-api-from-adf/m-p/19223#M8507</link>
      <description>&lt;P&gt;take a look here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://hub.alfresco.com/t5/application-development/how-to-populate-the-objectdatatableadapter-with-alfresco-api/m-p/310982/thread-id/1833/highlight/false#M1860" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/application-development/how-to-populate-the-objectdatatableadapter-with-alfresco-api/m-p/310982/thread-id/1833/highlight/false#M1860&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 14:51:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-call-remote-api-from-adf/m-p/19223#M8507</guid>
      <dc:creator>KarekMedAM</dc:creator>
      <dc:date>2022-02-15T14:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Call Remote API from ADF</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-call-remote-api-from-adf/m-p/19224#M8508</link>
      <description>&lt;P&gt;How can I make an alfresco request from ADF to a custom alfresco api, I tried this link but it's deprecated, can anyone help me?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 17:42:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-call-remote-api-from-adf/m-p/19224#M8508</guid>
      <dc:creator>Gustavo_DiasRT</dc:creator>
      <dc:date>2023-08-31T17:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to Call Remote API from ADF</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-call-remote-api-from-adf/m-p/19225#M8509</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;do you get an answer to this ?&lt;/P&gt;&lt;P&gt;I have the same problem wirth adw wher we try to add a button with a call to a web script and nothing seems to work anymore.&lt;/P&gt;&lt;P&gt;We have no way to call the custom webscript we made on previous versions of Alfresco which were integrated in share !&lt;/P&gt;&lt;P&gt;Please, we need help.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Regis&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 14:01:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-call-remote-api-from-adf/m-p/19225#M8509</guid>
      <dc:creator>rbaudu</dc:creator>
      <dc:date>2023-09-08T14:01:05Z</dc:date>
    </item>
  </channel>
</rss>

