HTTPS API call FROM Campaign To an external API.

Avatar

Avatar

anumola8359486

Avatar

anumola8359486

anumola8359486

14-08-2017

Hi All,

We have a requirement to call an HTTPs API from AC. Can anyone suggest how we can do the same? do we need to pass the SSL  details in the call here ?

Thanks and Regards,

Anumol Antony

View Entire Topic

Avatar

Avatar

Jean-Serge_Biro

MVP

Avatar

Jean-Serge_Biro

MVP

Jean-Serge_Biro
MVP

16-08-2017

Hello Anumola,

Is it Adobe Campaign Standard (ACS) or Adobe Campaign v6/v7 ? In that latter case, please indicate your build version.

From Adobe Campaign v6 most recent build 8853 (and AC v7 as well), the URL must be declared in the serverConf.xml file in order to be allowed from workflow Javascript activity and in AC external accounts.

(https://docs.campaign.adobe.com/doc/AC/en/RN.html).

And of course, also in your firewall rules if you are On Premise hosting...

If you have AC with build older than 8853, you can call directly the URL with https call inside Javascript activities boxes.

Please see the JS API documentation for the methods to call (HttpClientRequest, HttpClientResponse; or HttpSoapconnection if the Web Service called is SOAP method not REST method; etc).

You can call directly the target https url in your JS code.

If you need only to download data from an external URL inside a workflow, I recommend you to use the easiest way, define an AC external account (Administration/Platform/External Accounts, create new one, choose http type an then type your https web service url  and select SSL security and if needed the credentials and port if not 443).
Then in your workflow JS activity, you can use the Web Download activty, it is very easy to configure and use (even if this activity type you can define directly the URL, it is better to use external account).

Regards
Jean-Serge