Highlighted

Javascript node in workflow in ACS

FredrikSalzedo

22-01-2019

Hi,

in AC Classic you can have a javascript node in the workflow where you can write any code you want.

I don't find the equivalent in ACS? Does it exist for ACS?

Screen Shot 2019-01-22 at 11.07.01.png

Replies

Highlighted

FredrikSalzedo

22-01-2019

Hi! Thanks for the reply. Is there any way to accomplish the same functionality somehow? I'm using it in AC Classic for e.g. sending data to Slack. Like after an email sendout, send to slack how many it was sent to, I would like to be able to do the same in ACS.

Example:

vars.Antal=vars.recCount;

var http = new HttpClientRequest("https://hooks.slack.com/services/XXXXXX");

http.header["Content-Type"] = "application/json";

http.body=JSON.stringify({

"text": vars.Antal + " newsletter sent"

});

http.method="POST";

http.execute();

var response=http.response;