E10: How do I delete a row from UD09, externally using VB.NET?

Nevermind, I found the solution:

Dim epiSession As Ice.Core.Session =  New Ice.Core.Session(userName, password, "", Ice.Core.Session.LicenseType.Default, exePath, False, "AGM", "MfgSys")
Dim epiLaunch As Ice.Lib.Framework.ILauncher = epiLaunch = New Ice.Lib.Framework.ILauncher(epiSession)
Dim myUD09 As Ice.Adapters.UD09Adapter = New Ice.Adapters.UD09Adapter(epiLaunch)
myUD09.BOConnect()
Dim args() As String = {"Test1", "", "", "", ""}
myUD09.DeleteByID(args)
myUD09.Update()

I was having trouble getting DeleteByID working, which is why I posted the question. It turns out that I need to pass in all five Keys as an array to get it to work (even if four of the keys are blank).

If I want to write to the UD09 table in Epicor using an external VB.NET program, I would run these 8 lines of code:


Dim epiSession As Ice.Core.Session =  New Ice.Core.Session(userName, password, "", Ice.Core.Session.LicenseType.Default, exePath, False, "AGM", "MfgSys")

Dim epiLaunch As Ice.Lib.Framework.ILauncher = epiLaunch = New Ice.Lib.Framework.ILauncher(epiSession)

Dim myUD09 As Ice.Adapters.UD09Adapter = New Ice.Adapters.UD09Adapter(epiLaunch)

myUD09.BOConnect()

myUD09.GetaNewUD09()

myUD09.UD09Data.UD09.Rows(0)("Key1") = "Whatever I want"

myUD09.UD09Data.UD09.Rows(0)("RowMod") = "A"

myUD09.Update()


Can anybody tell me how to delete a row from UD09, externally using VB.NET (or C#)?