Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP forum
Suggested answer

Using eConnect how do I delete a PriceList

Posted on by 5

Hello, 

I am trying to automate a way to update and delete a PriceList using the eConnect object. 

I have found DeleteEntry() and DeleteTransactionEntity() that takes xml to delete.

DeleteEntry()

https://learn.microsoft.com/en-us/previous-versions/dynamicsgp/developer/ff623636(v=msdn.10)

DeleteTransactionEntity()

https://learn.microsoft.com/en-us/previous-versions/dynamicsgp/developer/ff623637(v=msdn.10)

I create a PriceListType with a taRequesterTrxDisabler. I don't know what the DOCTYPE should be. 

I don't know if there is a way to delete a PriceList or bulk delete a PriceList.

<?xml version="1.0"?>
<eConnect xmlns:xsi="">www.w3.org/.../XMLSchema-instance" xmlns:xsd="">www.w3.org/.../XMLSchema">
<IVCreateItemPriceListType>
<eConnectProcessInfo xsi:nil="true"/>
<taRequesterTrxDisabler_Items>
<taRequesterTrxDisabler>
<DOCTYPE>PRICELIST</DOCTYPE>
<Delete>1</Delete>
</taRequesterTrxDisabler>
</taRequesterTrxDisabler_Items>
<taIVCreateItemPriceListLine_Items>
<taIVCreateItemPriceListLine>
<ITEMNMBR>XXXXXXXXXX</ITEMNMBR>
<PRCLEVEL>ONE05</PRCLEVEL>
<UOFM>EACH</UOFM>
<TOQTY>300</TOQTY>
<UOMPRICE>3.22</UOMPRICE>
</taIVCreateItemPriceListLine>
</taIVCreateItemPriceListLine_Items>
<taIVCreateItemPriceListHeader>
<ITEMNMBR>XXXXXXXXXX</ITEMNMBR>
<UOFM>EACH</UOFM>
<PRCLEVEL>ONE05</PRCLEVEL>
</taIVCreateItemPriceListHeader>
</IVCreateItemPriceListType>
</eConnect>

Any thoughts of where to look?

Any examples would be appreciated. An example goes a long way.

Thank you

  • Suggested answer
    RE: Using eConnect how do I delete a PriceList

    Looking through the eConnect Help file, I see where you can update existing lines or add new ones, but you cannot delete them, via default eConnect.

    I.e. IVCreateItemPriceListType class states that it can be used to create a pricelist for an inventory item.

    Hopefully others in the Community will have some examples they may have used/are using.

    Thanks

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,645 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Product updates

Dynamics 365 release plans