'fileName' => 'Testexport.xml',
'accessKey' => Uuid::
randomHex(),
'encoding' => ProductExportEntity::ENCODING_UTF8,
'fileFormat' => ProductExportEntity::FILE_FORMAT_XML,
'interval' => 0,
'headerTemplate' => '<?xml version="1.0"?><export>',
'bodyTemplate' => '<name>{{ product.name }}</name>',
'footerTemplate' => '</export>',
'productStreamId' => '137b079935714281ba80b40f83f8d7eb',
'storefrontSalesChannelId' =>
$this->
getSalesChannelDomain()->
getSalesChannelId(),
'salesChannelId' =>
$this->
getSalesChannelId(),
'salesChannelDomainId' =>
$this->
getSalesChannelDomainId(),
'generateByCronjob' => false,
'currencyId' => Defaults::CURRENCY,
],
],
$this->context
);
return $id;
} private function createProductStream(): void
{ $connection =
$this->
getContainer()->
get(Connection::
class);