Pass data to External Data provider (JS)

Some external data providers require information that's not available in the External Data Context.

To pass additional data to the External Data Component configuration, add the key-value pairs in an object to the edcParameters.

Usage

Consider an integration where fictional session & customer id's need to be passed to the external data provider:

  • sessionId: 1Aed12fdef
  • customerId: 12344:

Add the key value pairs in the object:

window["twn-starter-config"].edcParameters = {
  sessionId: '1Aed12fdef',
  customerId: '12344'
};

The individual parameters can then be used in the Builder Configuration mapping step, using $.extraParameters: