since ‎09-08-2017
‎21-11-2020
aurélienh561651
Level 1
Call API Runtime in ACS
Avatar

aurélienh561651

aurélienh561651
- Adobe I/O Runtime
Hi, I am trying to create an API in Runtime, and call it in ACS.Javascript action's is :function main(params) { for (var i=0; i < params.count; i++) { return new Promise (function (resolve, reject) { var resp = { statusCode: 200, headers: { 'Content-Type': 'application/json' }, body: {msg: 'Hello' + params.firstname} }; resolve(resp); }); } } In ACS, I have a workflow and I target 10 contacts.For theses contacts, I would like call my API, and recover "Hello " as result. This workflow fail, and I...

Views

51

Likes

0

Replies

1
Re: error: The API host is not valid: An API host must be...
Avatar

aurélienh561651

aurélienh561651
- Project Firefly
.

Views

198

Likes

0

Replies

0