Share via


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

Syntax

client server public static RetailMediaChannelConnector getMediaChannelConnector(RetailMediaChannelConnectorSettings _retailMediaChannelConnectorSettings)

Run On

Called

Parameters

Return Value

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

Remarks

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.

See Also

Reference

RetailMediaChannelFactory Class