Mapping Strategies
What Needs Mapping?
Entity
ERP Side
Platform Side
Mapping Storage
const ErpApi = require('@vario-software/vario-app-framework-backend/api/ErpApi');
// Save a mapping
async function saveMapping(salesChannelId, mappingType, mappings)
{
const groupKey = `my-shop-mappings-${salesChannelId}`;
await ErpApi.eav.changeGroup(groupKey, (data) =>
{
data[mappingType] = mappings;
return data;
});
}
// Retrieve a mapping
async function getMapping(salesChannelId, mappingType)
{
const groupKey = `my-shop-mappings-${salesChannelId}`;
const group = await ErpApi.eav.getGroup(groupKey);
return group?.data?.[mappingType] || [];
}Mapping Data Structure
Using Mappings in Sync
Order Import (Inbound)
Product Sync (Outbound)
Building a Mapping UI
Fetching ERP Options
Fetching Platform Options
Category Mapping
Fallback Values
Last updated
Was this helpful?