<turbo-stream action="update" target="wiki_card"><template>
<h1>MS Dynamics BC Item -&gt; D365 Sales Product Add/Update</h1>
<p>This transfer will transfer new and updated MS Dynamics Business Central Items into D365 Sales products. All mappings are either 1:1 or additional lookups have been created. However, there are specific mappings where you have more than 1 option to map the indicated fields:</p>
<ol>
<li>Sales_Unit_of_Measure -&gt; defaultuomid</li>

<table>
<thead>
<tr>
<td><span><strong>Business Central Field</strong></span></td>
<td><span><strong>D365 Sales Field</strong></span></td>
</tr>
</thead>

<tbody>
<tr>
<td>##LSLOOKUP('UOM'+'#REVERSE',"Sales_Unit_of_Measure")</td>
<td>defaultuomid</td>
</tr>
<tr>
<td>##BLANKVALUE(DBLOOKUP('DESTDS','uom','name',"Sales_Unit_of_Measure",'uomid'),DBLOOKUP('DESTDS','uom','name','Primary Unit','uomid'))</td>
<td>defaultuomid</td>
</tr>
</tbody>
</table>

<p><i>Note: In Business Central, the Sales_Unit_of_Measure is a pre-defined picklist which will allow you to use only the available options. In D365 Sales, defaultuomid is a GUID field and a 1:1 mapping is not possible. </i></p>
<ul>

<li>Formula ##LSLOOKUP('UOM'+'#REVERSE',"Sales_Unit_of_Measure") where the defaultuomid is retrieved from an existing lookup table called UOM. This data is provided by a separate transfer which updates the link storage/lookup table called UOM;</li>
<li>Formula ##BLANKVALUE(DBLOOKUP('DESTDS','uom','name',"Sales_Unit_of_Measure",'uomid'),DBLOOKUP('DESTDS','uom','name','Primary Unit','uomid')) where two different lookups are made on the destination system in order to retrieve the defaultuomid.</li>

<p><i>Note: In D365 Sales, you have to create a Unit Group first and then the unit of measures that you are planning to use. It’s not recommended to create 1 Unit Group for each unit of measure as they will require additional lookups. </i></p>

</ul>
<li>defaultuomscheduleid</li>
<table>
<thead>
<tr>
<td><span><strong>Business Central Field</strong></span></td>
<td><span><strong>D365 Sales Field</strong></span></td>
</tr>
</thead>
<tbody>
<tr>
<td>##DBLOOKUP('DESTDS','uomschedule','name','Default Unit','uomscheduleid')</td>
<td>defaultuomscheduleid</td>
</tr>
<tr>
<td>##'dab7c34d-ffea-4311-9e3b-23f06d7952bb'</td>
<td>defaultuomscheduleid</td>
</tr>
</tbody>
</table>

<p><i>Note: The D365 Sales field defaultuomscheduleid is mandatory for any new and updated product but it does not exist in MS Dynamics Business Central. The field defaultuomscheduleid = Unit Group in D365 Sales . In order to populate this field with the GUID value, you have two options:</i></p>
<ul>

<li>Formula ##DBLOOKUP('DESTDS','uomschedule','name','Default Unit','uomscheduleid') where a lookup on the destination system is made to retrieve the value for defaultuomscheduleid.</li>
<li>##'dab7c34d-ffea-4311-9e3b-23f06d7952bb - a hardcoded value of defaultuomscheduleid if there is only 1 Unit Group. If you have multiple Unit Groups, additional lookups are required.</li>
</ul></ol>
</template></turbo-stream>

<turbo-stream action="replace" target="meta_description"><template><meta content='MS Dynamics BC Item -> D365 Sales Product Add/Update' id='meta_description' name='description'></template></turbo-stream>
<turbo-stream action="replace" target="meta_keywords"><template><meta content='MS Dynamics BC Item  D365 Sales Product' id='meta_keywords' name='keywords'></template></turbo-stream>
<turbo-stream action="update" target="meta_title"><template>MS Dynamics BC Item -> D365 Sales Product Add/Update - MyRapidi Wiki</template></turbo-stream>
<turbo-stream action="prepend" target="flash"><template></template></turbo-stream>
