Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Using eConnect how do I delete a PriceList

(0) ShareShare
ReportReport
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

Categories:
  • 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

News and Announcements

Announcing Category Subscriptions!

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans