Announcements
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
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
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156