AnsweredAssumed Answered

How to use scriptArgs in executeWebScript?

Question asked by d.moeyersons on Jun 28, 2018
Latest reply on Jun 29, 2018 by eugenio_romano

Hey,

 

I don't understand how to use scriptArgs in [AlfrescoApiService].getInstance().webScript.executeWebScript in ADF.

I tried several ways, even using a regular string, but none of them worked.
I solved it for now by adding the args to tthe scriptPath and it works, but I wondered if someone could explain how the scriptArgs work.

this.apiService.getInstance().webScript.executeWebScript(
  'GET',
  `api/vmm/agendastructuur/workspace/SpacesStore/${result.id}?showAgendapunten=false`,
  null,
  null,
  null,
  null
).then(
  (response: any) => {
    const convertedResponse = this.objectToObjectArray(response);
    // console.log(convertedResponse);
    this.nodes = convertedResponse;
  }
);

Thanks!

 

David.

Outcomes