Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Can we call an api using workflow in ACS?

Avatar

Avatar
Validate 1
Level 4
asish_kumarp599
Level 4

Likes

37 likes

Total Posts

62 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Shape 1
Boost 5
Boost 3
Boost 25
View profile

Avatar
Validate 1
Level 4
asish_kumarp599
Level 4

Likes

37 likes

Total Posts

62 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Shape 1
Boost 5
Boost 3
Boost 25
View profile
asish_kumarp599
Level 4

15-03-2018

Wondering if we can  call an api using workflow in ACS?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

236 likes

Total Posts

1,109 posts

Correct Reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

236 likes

Total Posts

1,109 posts

Correct Reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile
florentlb
Level 10

19-03-2018

Hi,

What Menno wrote is true for AC Classic.

For AC Standard, it is not possible for now. You can call a workflow from the rest API, but not the other way around.

Available APIs for AC Standard and how to use them are detailed in this document: https://docs.campaign.adobe.com/doc/standard/en/api/ACS_API.html 

Florent

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 2
menno_74
Level 2

Likes

7 likes

Total Posts

18 posts

Correct Reply

5 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 5
View profile

Avatar
Validate 1
Level 2
menno_74
Level 2

Likes

7 likes

Total Posts

18 posts

Correct Reply

5 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 5
View profile
menno_74
Level 2

16-03-2018

HI,

Yes, you can!

By using a javascript code from the action repository.

Basic code is like this:

var url = ''  // the URL to be called.

var http = new HttpClientRequest(url);

 

//use parameters below if login is requiered.

//http.header["UserName"] = strLogin;

//http.header["Password"] = strPwd;

//Set header type

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

 

http.method = "GET";

http.execute();

//pull the response as text.

var httpResponse = http.response.body.toString()

//Process the response from here.

Please note that the  URL you want to connect to is probably not whitelisted....

This is because the default list of URLs that can be called by JavaScript codes (workflows, etc.) is limited (as a security meas.

ure) To allow a new URL, the administrator needs to reference a new urlPermission in the serverConf.xml file.

Kind regards,

Menno

Avatar

Avatar
Validate 10
Level 4
davidl14970702
Level 4

Likes

30 likes

Total Posts

93 posts

Correct Reply

13 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Validate 10
Level 4
davidl14970702
Level 4

Likes

30 likes

Total Posts

93 posts

Correct Reply

13 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile
davidl14970702
Level 4

21-03-2018

Is there a good example of how to store the results of the API GET call into a list or rec table? For practice I have just been calling the free weather api Weather API - OpenWeatherMap . I think I need to turn the results into an object, then begin to parse it?