<?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: ADF Call Post webscript in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/adf-call-post-webscript/m-p/18478#M8179</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;The webscript api is marked as deprecated.&amp;nbsp; Can anyone comment on what should be used in its place if you want to call a custom webscript?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jun 2021 01:48:34 GMT</pubDate>
    <dc:creator>boneill</dc:creator>
    <dc:date>2021-06-03T01:48:34Z</dc:date>
    <item>
      <title>ADF Call Post webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-call-post-webscript/m-p/18475#M8176</link>
      <description>I am trying to get datalist value in my adf application and i can use GETmethod properly but at one place i need to call&amp;nbsp;POST method so how can i call post method with body?Below way I am using GET method. this.alfrescoJsApi.core.webscriptApi.executeWebScript('GET', 'slingshot/datalists/data/node/wo</description>
      <pubDate>Wed, 12 Dec 2018 14:01:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-call-post-webscript/m-p/18475#M8176</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2018-12-12T14:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: ADF Call Post webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-call-post-webscript/m-p/18476#M8177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi as from documentation that you can find in the alfresco-js-api repository:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Alfresco/alfresco-js-api#custom-web-scripts-call" title="https://github.com/Alfresco/alfresco-js-api#custom-web-scripts-call" rel="nofollow noopener noreferrer"&gt;GitHub - Alfresco/alfresco-js-api: This project provides a JavaScript client API into the Alfresco REST API and Activiti…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to change the input parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #24292e; margin-bottom: 16px;"&gt;executeWebScript(httpMethod, scriptPath, scriptArgs, contextRoot, servicePath, postBody)&lt;/P&gt;&lt;P&gt;The first&amp;nbsp;&lt;STRONG style="color: #24292e; background-color: #ffffff; font-weight: 600;"&gt;httpMethod &lt;/STRONG&gt;as to be&lt;STRONG style="color: #24292e; background-color: #ffffff; font-weight: 600;"&gt; 'POST'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The last parameter the &lt;SPAN style="color: #24292e;"&gt;postBody&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your case for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #001080; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;alfrescoJsApi&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #001080; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;core&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #001080; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;webscriptApi&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #795e26; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;executeWebScript&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;'POST'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;'slingshot/datalists/data/node/workspace/SpacesStore/ce744915-6130-40b8-9c57-6b7c442f656f',null, null, nul,&amp;nbsp;&lt;SPAN style="color: #24292e;"&gt;postBody&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2018 14:50:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-call-post-webscript/m-p/18476#M8177</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2018-12-12T14:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: ADF Call Post webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-call-post-webscript/m-p/18477#M8178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;Also you can import AlfrescoApiService like follows&lt;BR /&gt;import { AlfrescoApiService } from '@alfresco/adf-core';&lt;P&gt;&lt;/P&gt;declare it in constructor like follows&lt;BR /&gt;constructor(private apiService: AlfrescoApiService)&lt;P&gt;&lt;/P&gt;and can call any post method as follows&lt;P&gt;&lt;/P&gt;this.apiService.getInstance().webScript.executeWebScript(&lt;BR /&gt; 'POST',&lt;BR /&gt; '/variables',&lt;BR /&gt; null,&lt;BR /&gt; null,&lt;BR /&gt; 'api/-default-/public/workflow/versions/1/tasks',&lt;BR /&gt; JSON.stringify(this.commentBody)&lt;BR /&gt; ).then(&lt;BR /&gt; (response: any) =&amp;gt; {}&lt;BR /&gt; );&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2018 09:57:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-call-post-webscript/m-p/18477#M8178</guid>
      <dc:creator>rashesh_ved</dc:creator>
      <dc:date>2018-12-21T09:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: ADF Call Post webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-call-post-webscript/m-p/18478#M8179</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;The webscript api is marked as deprecated.&amp;nbsp; Can anyone comment on what should be used in its place if you want to call a custom webscript?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 01:48:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-call-post-webscript/m-p/18478#M8179</guid>
      <dc:creator>boneill</dc:creator>
      <dc:date>2021-06-03T01:48:34Z</dc:date>
    </item>
  </channel>
</rss>

