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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Who Me Too'd this topic

Avatar

Level 5

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?

delivery-error-api-connector-js.jpg

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

Who Me Too'd this topic