Team,
We wanted to make use of Delivery and to use Custom Routing method(such as javascript connector) for processing API requests.
- We're trying to integrate other API's in Adobe campaign.
- We're able to connect to those API and send messages using workflows
- Now we want to use Delivery and input targetted addresses in the Delivery target
- Then in the backend we want to process API request using connector
- We tried to use Mobile App push connector for reference. Setting up mobile app channel
- However we failed to complete custom js connector(Attached error image for reference)
- If we execute the same code using workflows, it's working. If I use the same code in connector js, it's not working. Any idea please?
The following are the important code snippet in the delivery connector we believe:
loadLibrary("xtk:shared/nl.js");
NL.require('/nl/core/shared/xtk.js')
.require('/nl/core/shared/js.js');
function processDeliveryPart (deliveryPart) {
var msgs = <messages/>;
/* API request code comes here */
return msgs;
}
//-----------------------------------------------------------------------------// Useless here, but needed by Neolane
//-----------------------------------------------------------------------------
function getStatus (xml) {
var msgs = <messages/>;
return msgs;
}
//-----------------------------------------------------------------------------
// Useless here, but needed by Neolane
//-----------------------------------------------------------------------------
function getMessages (xml) {
var msgs = <messages/>;
return msgs;
}
Thanks,
Somasundaram
Solved! Go to Solution.