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 <firstname>" as result.
This workflow fail, and I got the error below (but no more details....) :
What is wrong ? Can you help me on this subject ?
Thank you,
Regards,
Aurélien