RetailMediaChannelFactory::getMediaChannelConnector Method [AX 2012]

Creates and returns a new instance of one of channel connector classes based on the record from the RetailMediaChannelConnectorSettings table

client server public static RetailMediaChannelConnector getMediaChannelConnector(RetailMediaChannelConnectorSettings _retailMediaChannelConnectorSettings)

Run On

Called

Parameters

_retailMediaChannelConnectorSettings
Type: RetailMediaChannelConnectorSettings Table
the RetailMediaChannelConnectorSettings table record

Return Value

Type: RetailMediaChannelConnector Interface
a new instance of one of channel connector classes based on the record from the RetailMediaChannelConnectorSettings table

The ChannelType fied of the RetailMediaChannelConnectorSettings table determines which class instance will be created. If this field has RetailMediaChannelName::None value, the method will not create a new instance of a connector class and will return null.

Show: