Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Price level header

Posted on by Microsoft Employee

I have a product and would like to create multiple price levels for this product using the eConnect API in C#. 

When I generate the XMLDocument, do I need to create a price header for each price line? Or will one price header work for multiple line items placed into the price line?

I'm using the following objects:

  • Price list type - IVCreateItemPriceListType
  • Price Header - taIVCreateItemPriceListHeader
  • Price Line Item array - taIVCreateItemPriceListLine_ItemsTaIVCreateItemPriceListLine
  • Price Line - taIVCreateItemPriceListLine_ItemsTaIVCreateItemPriceListLine

I'm assigning the header and line item array to the price list type and finally any price line will be assigned to each index of the array.

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Price level header

    I've answered my own question after doing some further testing. If you wish to create multiple price levels for an item you need to format the XML as follows:

    <eConnect xmlns:xsd="www.w3.org/.../XMLSchema&quot; xmlns:xsi="www.w3.org/.../XMLSchema-instance&quot;>

     <IVCreateItemPriceListType>

       <taIVCreateItemPriceListLine_Items>

         <taIVCreateItemPriceListLine>

           <ITEMNMBR>item</ITEMNMBR>

           <CURNCYID>Z-US$</CURNCYID>

           <PRCLEVEL>RETAIL</PRCLEVEL>

           <UOFM>EACH</UOFM>

           <UOMPRICE>2.0</UOMPRICE>

         </taIVCreateItemPriceListLine>

         <taIVCreateItemPriceListLine>

           <ITEMNMBR>item</ITEMNMBR>

           <CURNCYID>Z-US$</CURNCYID>

           <PRCLEVEL>WHOLESALE</PRCLEVEL>

           <UOFM>EACH</UOFM>

           <UOMPRICE>1.1</UOMPRICE>

         </taIVCreateItemPriceListLine>

       </taIVCreateItemPriceListLine_Items>

       <taIVCreateItemPriceListHeader>

         <ITEMNMBR>item</ITEMNMBR>

         <UOFM>EACH</UOFM>

         <PRCLEVEL>RETAIL</PRCLEVEL>

         <CURNCYID>Z-US$</CURNCYID>

       </taIVCreateItemPriceListHeader>

     </IVCreateItemPriceListType>

    </eConnect>

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans