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