dynamics gp - Trying to delete a Miscellaneous Log Entry via eConnect - possible -


i have snippet of code creates 1 or more miscellaneous log entries via econnect. if code fails create entry, created entries should deleted.

e.g. (pseudo-code)

list<string> xmldocs = new list<string>();  try {      (int index = 0; index < entries.count; index++)      {           // create tapamiscloghdrinsert           // create tapamiscloglineinsert_itemstapamiscloglineinsert[]           // create pamisclogexpensetype , set fields above           // generate xml           xmldocs.add(econnect.createtransactionentity(connectionstring, xml)      } }  catch  {      (int index = 0; index < xmldocs.count; index++)      {           econnect.deletetransactionentity(connectionstring. xmldocs[index];      } } 

the deletetransactionentity call fails 'duplicate misc log entry' makes sense since xml createtransactionentity call contains hdrinsert nodes.

this leads me believe cannot programmatically delete miscellaneous log entries, thought i'd ask.

anyone know if possible?


Comments

Popular posts from this blog

python - Mongodb How to add addtional information when aggregating? -

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

java - Incorrect order of records in M-M relationship in hibernate -