Javascript node in workflow in ACS

Avatar

Avatar

FredrikSalzedo

Avatar

FredrikSalzedo

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

Avatar

Avatar

asish_kumarp599

Avatar

asish_kumarp599

asish_kumarp599

22-01-2019

No It doesn't exist in ACS.

Avatar

Avatar

FredrikSalzedo

Avatar

FredrikSalzedo

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;

Avatar

Avatar

DavidKangni

MVP

Avatar

DavidKangni

MVP

DavidKangni
MVP

25-01-2019

You can't do outbound API calls  in ACS.

Thanks

David