Subscribe to Event handler.
[SubscribesTo(classStr(RetailCDXSeedDataBase), delegateStr(RetailCDXSeedDataBase, registerCDXSeedDataExtension))]
public static void RetailCDXSeedDataBase_registerCDXSeedDataExtension(str originalCDXSeedDataResource, List resources)
{
if (originalCDXSeedDataResource == resourceStr(RetailCDXSeedDataAX7))
{
resources.addEnd(resourceStr(SAN_SalesOrderClassResource));
resources.addEnd(resourceStr(smmBusRelSectorTableResource));
}
}
Create D365FO resource (SAN_SalesOrderClassResource) for new table.
Resource content: XML
<RetailCdxSeedData ChannelDBMajorVersion="7" ChannelDBSchema="ext" Name="AX7">
<Subjobs>
<Subjob Id="SAN_SalesOrderClass" TargetTableSchema="ext" AxTableName="SAN_SalesOrderClass">
<ScheduledByJobs>
<ScheduledByJob>1140</ScheduledByJob>
</ScheduledByJobs>
<AxFields>
<Field Name="SALESORDERCLASS"/>
<Field Name="MAXQTY"/>
<Field Name="AVAILABLEFROM"/>
<Field Name="AVAILABLETO"/>
<Field Name="SOALLOCPRIORITY"/>
<Field Name="PAYMTERMID"/>
<Field Name="HOLDCODE"/>
<Field Name="RECID"/>
<Field Name="RECVERSION"/>
<Field Name="PARTITION"/>
</AxFields>
</Subjob>
</Subjobs>
</RetailCdxSeedData>
No comments:
Post a Comment