Sales Channel Parameters
Why Per-Channel Configuration?
Storage Approaches
Using EAV Groups
const ErpApi = require('@vario-software/vario-app-framework-backend/api/ErpApi');
// Store a parameter
async function setChannelParameter(salesChannelId, key, value)
{
const groupKey = `my-shop-channel-${salesChannelId}`;
await ErpApi.eav.changeGroup(groupKey, (data) =>
{
data[key] = value;
return data;
});
}
// Retrieve a parameter
async function getChannelParameter(salesChannelId, key)
{
const groupKey = `my-shop-channel-${salesChannelId}`;
const group = await ErpApi.eav.getGroup(groupKey);
return group?.data?.[key] || null;
}Using a Local Database
Common Parameters
Key
Description
Example Value
Caching
Credential Storage
Last updated
Was this helpful?