# Unable to add new rows to UD09 with rest-erp or REST API Help

**URL:** <https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953>\
**Category:** Kinetic ERP\
**Tags:** rest, rest-api\
**Created:** [February 23, 2026, 6:08pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953 "2026-02-23T18:08:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![connorb](https://www.epiusers.help/user_avatar/www.epiusers.help/connorb/32/91372_2.png) [@connorb](https://www.epiusers.help/u/connorb)\
**Post date:** [February 23, 2026, 6:08pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/1 "2026-02-23T18:08:45Z")

</div>

Currently stuck on trying to add new rows to UD09 using Ice.BO.UD09Svc - GetaNewUD09 with the rest-erp widget. Users enter new row information in textboxes (form structure) and when they click Save, I trigger the REST call to create and add the new row to UD09 (which updates a panel card grid displaying all UD09 rows).

I map the user form input to TransView, and use the respective values for my Key1, Key2, etc. fields in the widget’s method parameters. This is an example of roughly how I aim to pass the ds:

 ![image](https://www.epiusers.help/uploads/default/original/3X/9/3/933fd135d4b8ddff1aa3d5728b912c48ed9967ba.png)

No matter how I structure the JSON (tried wrapping in a “UD09” key, tried wrapping in a “ds” key, etc.) I get a Server 500 error and the REST call “fails” (no new row added, but an empty default response is sent back with all UD09 values blank). Same case with REST API Help–Taking the default response parameter structure that’s provided, I modified only Company and a few Key values and I was still unable to get a new row added.

 ![image](https://www.epiusers.help/uploads/default/original/3X/a/c/ac03c42e9463d50fa0ea15a1283e01bc6e7a8deb.png)  
My response in REST API Help:

 ![image](https://www.epiusers.help/uploads/default/original/3X/8/e/8e8a99a015aa14af99a1562998b03034c0694c53.png)

My response in dev console (assuming the “u.split” error is related to my incorrect JSON method parameter) ?:

 ![image](https://www.epiusers.help/uploads/default/original/3X/7/a/7a9966d7b3f8e1c49eff1ff7011346d31d71a851.png)

 ![image](https://www.epiusers.help/uploads/default/original/3X/f/7/f798b31c37c25e2bc462e7fcd3bb4a24024ed630.png)

I’m able to add/delete/update UD09 just fine through DMT. On this same dashboard I’m able to update UD09 through a UBAQ grid, just stuck on trying to update with rest-erp! What could I be missing here? I know this can be achieved through a custom function but I’d really like to understand why the app studio widget (or even REST API Help) isn’t working for me.

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [February 23, 2026, 8:28pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/2 "2026-02-23T20:28:26Z")

</div>

payload for Get **a** NewUD09

```js
{
  "ds": {}
}

```

output → Note that parameters BS, remove the ` "parameters": {` and one `}` from the end

```js
{
  "parameters": {
    "ds": {
      "UD09": [
        {
          "Company": "MS67964",
          "Key1": "",
          "Key2": "",
          "Key3": "",
          "Key4": "",
          "Key5": "",
          "Character01": "",
          "Character02": "",
          "Character03": "",
          "Character04": "",
          "Character05": "",
          "Character06": "",
          "Character07": "",
          "Character08": "",
          "Character09": "",
          "Character10": "",
          "Number01": 0,
          "Number02": 0,
          "Number03": 0,
          "Number04": 0,
          "Number05": 0,
          "Number06": 0,
          "Number07": 0,
          "Number08": 0,
          "Number09": 0,
          "Number10": 0,
          "Number11": 0,
          "Number12": 0,
          "Number13": 0,
          "Number14": 0,
          "Number15": 0,
          "Number16": 0,
          "Number17": 0,
          "Number18": 0,
          "Number19": 0,
          "Number20": 0,
          "Date01": null,
          "Date02": null,
          "Date03": null,
          "Date04": null,
          "Date05": null,
          "Date06": null,
          "Date07": null,
          "Date08": null,
          "Date09": null,
          "Date10": null,
          "Date11": null,
          "Date12": null,
          "Date13": null,
          "Date14": null,
          "Date15": null,
          "Date16": null,
          "Date17": null,
          "Date18": null,
          "Date19": null,
          "Date20": null,
          "CheckBox01": false,
          "CheckBox02": false,
          "CheckBox03": false,
          "CheckBox04": false,
          "CheckBox05": false,
          "CheckBox06": false,
          "CheckBox07": false,
          "CheckBox08": false,
          "CheckBox09": false,
          "CheckBox10": false,
          "CheckBox11": false,
          "CheckBox12": false,
          "CheckBox13": false,
          "CheckBox14": false,
          "CheckBox15": false,
          "CheckBox16": false,
          "CheckBox17": false,
          "CheckBox18": false,
          "CheckBox19": false,
          "CheckBox20": false,
          "ShortChar01": "",
          "ShortChar02": "",
          "ShortChar03": "",
          "ShortChar04": "",
          "ShortChar05": "",
          "ShortChar06": "",
          "ShortChar07": "",
          "ShortChar08": "",
          "ShortChar09": "",
          "ShortChar10": "",
          "ShortChar11": "",
          "ShortChar12": "",
          "ShortChar13": "",
          "ShortChar14": "",
          "ShortChar15": "",
          "ShortChar16": "",
          "ShortChar17": "",
          "ShortChar18": "",
          "ShortChar19": "",
          "ShortChar20": "",
          "GlobalUD09": false,
          "GlobalLock": false,
          "SysRevID": 0,
          "SysRowID": "00000000-0000-0000-0000-000000000000",
          "BitFlag": 0,
          "RowMod": "A"
        }
      ],
      "UD09Attch": [],
      "ExtensionTables": []
    }
  }
}

```

fill in data… and pass to update

```js
{
  "ds": {
    "UD09": [
      {
        "Company": "MS67964",
        "Key1": "Testing...",
        "Key2": "",
        "Key3": "",
        "Key4": "",
        "Key5": "",
        "Character01": "",
        "Character02": "",
        "Character03": "",
        "Character04": "",
        "Character05": "",
        "Character06": "",
        "Character07": "",
        "Character08": "",
        "Character09": "",
        "Character10": "",
        "Number01": 0,
        "Number02": 0,
        "Number03": 0,
        "Number04": 0,
        "Number05": 0,
        "Number06": 0,
        "Number07": 0,
        "Number08": 0,
        "Number09": 0,
        "Number10": 0,
        "Number11": 0,
        "Number12": 0,
        "Number13": 0,
        "Number14": 0,
        "Number15": 0,
        "Number16": 0,
        "Number17": 0,
        "Number18": 0,
        "Number19": 0,
        "Number20": 0,
        "Date01": null,
        "Date02": null,
        "Date03": null,
        "Date04": null,
        "Date05": null,
        "Date06": null,
        "Date07": null,
        "Date08": null,
        "Date09": null,
        "Date10": null,
        "Date11": null,
        "Date12": null,
        "Date13": null,
        "Date14": null,
        "Date15": null,
        "Date16": null,
        "Date17": null,
        "Date18": null,
        "Date19": null,
        "Date20": null,
        "CheckBox01": false,
        "CheckBox02": false,
        "CheckBox03": false,
        "CheckBox04": false,
        "CheckBox05": false,
        "CheckBox06": false,
        "CheckBox07": false,
        "CheckBox08": false,
        "CheckBox09": false,
        "CheckBox10": false,
        "CheckBox11": false,
        "CheckBox12": false,
        "CheckBox13": false,
        "CheckBox14": false,
        "CheckBox15": false,
        "CheckBox16": false,
        "CheckBox17": false,
        "CheckBox18": false,
        "CheckBox19": false,
        "CheckBox20": false,
        "ShortChar01": "",
        "ShortChar02": "",
        "ShortChar03": "",
        "ShortChar04": "",
        "ShortChar05": "",
        "ShortChar06": "",
        "ShortChar07": "",
        "ShortChar08": "",
        "ShortChar09": "",
        "ShortChar10": "",
        "ShortChar11": "",
        "ShortChar12": "",
        "ShortChar13": "",
        "ShortChar14": "",
        "ShortChar15": "",
        "ShortChar16": "",
        "ShortChar17": "",
        "ShortChar18": "",
        "ShortChar19": "",
        "ShortChar20": "",
        "GlobalUD09": false,
        "GlobalLock": false,
        "SysRevID": 0,
        "SysRowID": "00000000-0000-0000-0000-000000000000",
        "BitFlag": 0,
        "RowMod": "A"
      }
    ],
    "UD09Attch": [],
    "ExtensionTables": []
  }
}

```

Bob’s your uncle.

---

<div class="post-metadata">

**Author:** ![connorb](https://www.epiusers.help/user_avatar/www.epiusers.help/connorb/32/91372_2.png) [@connorb](https://www.epiusers.help/u/connorb)\
**Post date:** [February 23, 2026, 8:49pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/3 "2026-02-23T20:49:25Z")

</div>

Started on a fresh slate for my own sanity. My UD09 table has 97 rows currently.

Here’s my event to add a new row:

 ![image](https://www.epiusers.help/uploads/default/original/3X/5/8/583bc3672f4bac2c12a6d95ca76fdc2f7e212c96.png)

My rest-erp setup:

 ![image](https://www.epiusers.help/uploads/default/original/3X/9/d/9d1780cb3448756e21259a98d62f429fbbc74410.png)

 ![image](https://www.epiusers.help/uploads/default/original/3X/b/f/bfb4bd2607939b43d3d0d76091c1f5d8519be478.png)

JSON for the Dataset Model:

```auto
{
	"ds": {
		"UD09": [
			{
				"Company": "BMF",
				"Key1": "99999",
				"Key2": "88888",
				"Key3": "4",
				"Key4": "Test1",
				"Key5": "Test2",
				"Character01": "",
				"Character02": "",
				"Character03": "",
				"Character04": "",
				"Character05": "",
				"Character06": "",
				"Character07": "",
				"Character08": "",
				"Character09": "",
				"Character10": "",
				"Number01": 0,
				"Number02": 0,
				"Number03": 0,
				"Number04": 0,
				"Number05": 0,
				"Number06": 0,
				"Number07": 0,
				"Number08": 0,
				"Number09": 0,
				"Number10": 0,
				"Number11": 0,
				"Number12": 0,
				"Number13": 0,
				"Number14": 0,
				"Number15": 0,
				"Number16": 0,
				"Number17": 0,
				"Number18": 0,
				"Number19": 0,
				"Number20": 0,
				"Date01": null,
				"Date02": null,
				"Date03": null,
				"Date04": null,
				"Date05": null,
				"Date06": null,
				"Date07": null,
				"Date08": null,
				"Date09": null,
				"Date10": null,
				"Date11": null,
				"Date12": null,
				"Date13": null,
				"Date14": null,
				"Date15": null,
				"Date16": null,
				"Date17": null,
				"Date18": null,
				"Date19": null,
				"Date20": null,
				"CheckBox01": false,
				"CheckBox02": false,
				"CheckBox03": false,
				"CheckBox04": false,
				"CheckBox05": false,
				"CheckBox06": false,
				"CheckBox07": false,
				"CheckBox08": false,
				"CheckBox09": false,
				"CheckBox10": false,
				"CheckBox11": false,
				"CheckBox12": false,
				"CheckBox13": false,
				"CheckBox14": false,
				"CheckBox15": false,
				"CheckBox16": false,
				"CheckBox17": false,
				"CheckBox18": false,
				"CheckBox19": false,
				"CheckBox20": false,
				"ShortChar01": "",
				"ShortChar02": "",
				"ShortChar03": "",
				"ShortChar04": "",
				"ShortChar05": "",
				"ShortChar06": "",
				"ShortChar07": "",
				"ShortChar08": "",
				"ShortChar09": "",
				"ShortChar10": "",
				"ShortChar11": "",
				"ShortChar12": "",
				"ShortChar13": "",
				"ShortChar14": "",
				"ShortChar15": "",
				"ShortChar16": "",
				"ShortChar17": "",
				"ShortChar18": "",
				"ShortChar19": "",
				"ShortChar20": "",
				"GlobalUD09": false,
				"GlobalLock": false,
				"SysRevID": 0,
				"SysRowID": "00000000-0000-0000-0000-000000000000",
				"BitFlag": 0,
				"RowMod": "A"
			}
		],
		"UD09Attch": [],
		"ExtensionTables": []
	}
}

```

Response in console:

 ![image](https://www.epiusers.help/uploads/default/original/3X/f/9/f99fe99abdad5ee75dd3f795f60f5d64053f2dcc.png)

My response from GetaNewUD09 on the network tab:

```auto
{
    "parameters": {
        "ds": {
            "UD09": [
                {
                    "Company": "BMF",
                    "Key1": "",
                    "Key2": "",
                    "Key3": "",
                    "Key4": "",
                    "Key5": "",
                    "Character01": "",
                    "Character02": "",
                    "Character03": "",
                    "Character04": "",
                    "Character05": "",
                    "Character06": "",
                    "Character07": "",
                    "Character08": "",
                    "Character09": "",
                    "Character10": "",
                    "Number01": 0.0,
                    "Number02": 0.0,
                    "Number03": 0.0,
                    "Number04": 0.0,
                    "Number05": 0.0,
                    "Number06": 0.0,
                    "Number07": 0.0,
                    "Number08": 0.0,
                    "Number09": 0.0,
                    "Number10": 0.0,
                    "Number11": 0.0,
                    "Number12": 0.0,
                    "Number13": 0.0,
                    "Number14": 0.0,
                    "Number15": 0.0,
                    "Number16": 0.0,
                    "Number17": 0.0,
                    "Number18": 0.0,
                    "Number19": 0.0,
                    "Number20": 0.0,
                    "Date01": null,
                    "Date02": null,
                    "Date03": null,
                    "Date04": null,
                    "Date05": null,
                    "Date06": null,
                    "Date07": null,
                    "Date08": null,
                    "Date09": null,
                    "Date10": null,
                    "Date11": null,
                    "Date12": null,
                    "Date13": null,
                    "Date14": null,
                    "Date15": null,
                    "Date16": null,
                    "Date17": null,
                    "Date18": null,
                    "Date19": null,
                    "Date20": null,
                    "CheckBox01": false,
                    "CheckBox02": false,
                    "CheckBox03": false,
                    "CheckBox04": false,
                    "CheckBox05": false,
                    "CheckBox06": false,
                    "CheckBox07": false,
                    "CheckBox08": false,
                    "CheckBox09": false,
                    "CheckBox10": false,
                    "CheckBox11": false,
                    "CheckBox12": false,
                    "CheckBox13": false,
                    "CheckBox14": false,
                    "CheckBox15": false,
                    "CheckBox16": false,
                    "CheckBox17": false,
                    "CheckBox18": false,
                    "CheckBox19": false,
                    "CheckBox20": false,
                    "ShortChar01": "",
                    "ShortChar02": "",
                    "ShortChar03": "",
                    "ShortChar04": "",
                    "ShortChar05": "",
                    "ShortChar06": "",
                    "ShortChar07": "",
                    "ShortChar08": "",
                    "ShortChar09": "",
                    "ShortChar10": "",
                    "ShortChar11": "",
                    "ShortChar12": "",
                    "ShortChar13": "",
                    "ShortChar14": "",
                    "ShortChar15": "",
                    "ShortChar16": "",
                    "ShortChar17": "",
                    "ShortChar18": "",
                    "ShortChar19": "",
                    "ShortChar20": "",
                    "GlobalUD09": false,
                    "GlobalLock": false,
                    "SysRevID": 0,
                    "SysRowID": "00000000-0000-0000-0000-000000000000",
                    "BitFlag": 0,
                    "RowMod": "A"
                }
            ],
            "UD09Attch": [],
            "ExtensionTables": []
        }
    }
}

```

Still 97 rows in UD09, no new row added. I know I’m missing something small here..

---

<div class="post-metadata">

**Author:** ![josecgomez](https://www.epiusers.help/user_avatar/www.epiusers.help/josecgomez/32/55731_2.png) [@josecgomez](https://www.epiusers.help/u/josecgomez)\
**Post date:** [February 23, 2026, 8:55pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/4 "2026-02-23T20:55:34Z")

</div>

GetNew doesn’t add a row on the database, all it does is give you an empty to row to fill in.

May I sugest @Mark_Wonsil’s favorite thing and ask that you make a function instead that takes in just the fields you need to add.

It can then do the work, on the server side, and you avoid having to get GetNew, ChangXX, Update etc in the front end.

ALso and this is just a note for your future self, rename your controls before you hoook up events your future self will thank you.

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [February 23, 2026, 8:59pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/5 "2026-02-23T20:59:01Z")

</div>

> [@josecgomez](#):
>
> GetNew doesn’t add a row on the database

Thanks Jose, I forgot a piece of a sentence in my reply… “pass to update” 🤣

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [February 23, 2026, 9:00pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/6 "2026-02-23T21:00:26Z")

</div>

Btw GetaNewUD09 works well, but GetNewUD09 seems all jacked up. I gave up as it wasn’t worth it.

---

<div class="post-metadata">

**Author:** ![josecgomez](https://www.epiusers.help/user_avatar/www.epiusers.help/josecgomez/32/55731_2.png) [@josecgomez](https://www.epiusers.help/u/josecgomez)\
**Post date:** [February 23, 2026, 9:00pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/7 "2026-02-23T21:00:47Z")

</div>

One of them is deprecated (I can never remember which one)

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [February 23, 2026, 9:01pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/8 "2026-02-23T21:01:13Z")

</div>

Hopefully not the one that works…

---

<div class="post-metadata">

**Author:** ![Chris\_Conn](https://www.epiusers.help/user_avatar/www.epiusers.help/chris_conn/32/93797_2.png) [@Chris\_Conn](https://www.epiusers.help/u/Chris_Conn)\
**Post date:** [February 23, 2026, 9:17pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/9 "2026-02-23T21:17:59Z")

</div>

GetANew is the correct (undeprecated) one

---

<div class="post-metadata">

**Author:** ![connorb](https://www.epiusers.help/user_avatar/www.epiusers.help/connorb/32/91372_2.png) [@connorb](https://www.epiusers.help/u/connorb)\
**Post date:** [February 23, 2026, 9:38pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/10 "2026-02-23T21:38:12Z")

</div>

> [@josecgomez](#):
>
> ALso and this is just a note for your future self, rename your controls before you hoook up events your future self will thank you.

Definitely…this has been driving me nuts all day so I started fresh in a new app with a single button and event to figure out why I can’t get GetaNewUD09 to work..

> [@josecgomez](#):
>
> GetNew doesn’t add a row on the database, all it does is give you an empty to row to fill in.

Trying to wrap my head around what that GetaNewUD09 method is actually doing. Is it modifying a temporary dataset that needs to be committed afterwards with Update? If that’s the case then would every rest-erp call to GetaNewUD09 need a second rest-erp call for Update afterwards?

DeleteByID, GetByID, GetRows, Update, etc. all make sense to me (and I have successfully used them in my apps/REST API help testing) but I’m still unable to understand what I’m missing when trying to use GetaNewUD09 without making a function. Will be going the function route tomorrow…

---

<div class="post-metadata">

**Author:** ![Chris\_Conn](https://www.epiusers.help/user_avatar/www.epiusers.help/chris_conn/32/93797_2.png) [@Chris\_Conn](https://www.epiusers.help/u/Chris_Conn)\
**Post date:** [February 23, 2026, 9:42pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/11 "2026-02-23T21:42:17Z")

</div>

> [@connorb](#):
>
> modifying a temporary dataset that needs to be committed afterwards with Update

This is correct

> [@connorb](#):
>
> would every rest-erp call to GetaNewUD09 need a second rest-erp call for Update afterwards

Also correct

This is the reason for this suggestion

> [@josecgomez](#):
>
> I sugest @Mark_Wonsil’s favorite thing and ask that you make a function instead that takes in just the fields you need to add.

---

<div class="post-metadata">

**Author:** ![dcamlin](https://www.epiusers.help/user_avatar/www.epiusers.help/dcamlin/32/57759_2.png) [@dcamlin](https://www.epiusers.help/u/dcamlin)\
**Post date:** [February 24, 2026, 12:50pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/12 "2026-02-24T12:50:02Z")

</div>

You don’t need to spell out the entire dataset in the JSON.

For what its worth, if you want to give it a try, here is my set-up for GetaNewUD02

 ![image](https://www.epiusers.help/uploads/default/original/3X/e/5/e56354540f05be20b2d3d83efa0fd1dd702fcd30.png)

Method Params:

 ![image](https://www.epiusers.help/uploads/default/original/3X/4/6/462456350a5283678ce5a6113c610a51d2c1b996.png)

No Request Params.

Response Params:

 ![image](https://www.epiusers.help/uploads/default/original/3X/a/8/a86f3724c204a38848986320cd7501fa1cc540a3.png)

Response Params \> Dataset:

 ![image](https://www.epiusers.help/uploads/default/original/3X/3/d/3dab31e89fe9ab7a1c6109b018f39a1f5460a908.png)

Don’t try to pre-fill anything IN this rest call. This call is just to create a new row with an empty dataset.

Follow-up your rest-erp with a row-update action to then set your values.

---

<div class="post-metadata">

**Author:** ![connorb](https://www.epiusers.help/user_avatar/www.epiusers.help/connorb/32/91372_2.png) [@connorb](https://www.epiusers.help/u/connorb)\
**Post date:** [February 24, 2026, 3:26pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/13 "2026-02-24T15:26:01Z")

</div>

Went the function route and looks like I’m running into some context issues with the ‘Db’ variable in the following code:

```csharp
using (var UD09svc = Ice.Assemblies.ServiceRenderer.GetService<Ice.Contracts.UD09SvcContract>(Db)){

// Create a new record
UD09Tableset ds = new UD09Tableset();

UD09svc.GetaNewUD09(ref ds);

// Set field values
ds.UD09[0].Key1 = "Order123";
ds.UD09[0].Key2 = "Line001";
ds.UD09[0].ShortChar01 = "Custom Data";
ds.UD09[0].Number01 = 100;

// Save the record
UD09svc.Update(ref ds);

}

```

 ![image](https://www.epiusers.help/uploads/default/original/3X/1/1/1135635668e73385728355ed073ac689f9ad3fe9.png)

Receiving Error CS1503: Argument 1: cannot convert from ‘EFx.CONNOR\_DEV.Implementation.ILibraryContext’ to ‘Ice.IceDataContext’

 ![image](https://www.epiusers.help/uploads/default/original/3X/0/d/0dc268cd740fa6f0ae8d05f9b3367314e16ce40c.png)

My assemblies, tables, and services declared for my function library:

 ![image](https://www.epiusers.help/uploads/default/original/3X/5/6/564e393f98619840e81ae00951c8fe5006acd185.png)

 ![image](https://www.epiusers.help/uploads/default/original/3X/e/c/ec87e6310ac69c797efad1d3d2f6b51252b8710e.png)

 ![image](https://www.epiusers.help/uploads/default/original/3X/2/3/2328d9ae78a078d692c668b3a18eb1b99be46991.png)

What might I be missing here?

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [February 24, 2026, 3:50pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/14 "2026-02-24T15:50:09Z")

</div>

> [@connorb](#):
>
> Went the function route and looks like I’m running into some context issues with the ‘Db’ variable in the following code:

The ‘Db’ context in a function is different.

You can make your own context using the factory (Ice or Erp) but you would usually want to use CallService instead.

```auto
CallService<Ice.Contracts.UD09SvcContract>(UD09svc =>
{
    // Create a new record
    UD09Tableset ds = new UD09Tableset();

    UD09svc.GetaNewUD09(ref ds);

    // Set field values
    ds.UD09[0].Key1 = "Order123";
    ds.UD09[0].Key2 = "Line001";
    ds.UD09[0].ShortChar01 = "Custom Data";
    ds.UD09[0].Number01 = 100;

    // Save the record
    UD09svc.Update(ref ds);
});

```

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [February 24, 2026, 3:51pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/15 "2026-02-24T15:51:44Z")

</div>

> [@connorb](#):
>
> ![image](https://www.epiusers.help/uploads/default/original/3X/2/3/2328d9ae78a078d692c668b3a18eb1b99be46991.png)
> 
> image433×237 5.08 KB

Also, just add the UD09 Service under the services references. It will bring in everything you need for that `automagically`. No need to add the individual assemblies.

---

<div class="post-metadata">

**Author:** ![connorb](https://www.epiusers.help/user_avatar/www.epiusers.help/connorb/32/91372_2.png) [@connorb](https://www.epiusers.help/u/connorb)\
**Post date:** [February 26, 2026, 5:47pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/17 "2026-02-26T17:47:55Z")

</div>

Where’s the best place (other than this forum) to find code examples like this? REST API Help has been a great resource to explore everything Epicor exposes, parameters required for each method call, response structures, etc. but I’ve been struggling to find syntax examples of how to utilize all of these methods programmatically through functions.

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [February 26, 2026, 5:54pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/18 "2026-02-26T17:54:53Z")

</div>

> [@connorb](#):
>
> Where’s the best place (other than this forum) to find code examples like this?

This forum is your only hope.

![](https://media2.giphy.com/media/v1.Y2lkPWU5MGVkYmEzbjV3b3I5ZTNmamtndzE2OGo0a3Z2b3JoZjA0amN1NXJrMDlyNjF5aSZlcD12MV9naWZzX3NlYXJjaCZjdD1n/f6D3ZYfRpkPvlczEvQ/giphy.webp)

---

<div class="post-metadata">

**Author:** ![connorb](https://www.epiusers.help/user_avatar/www.epiusers.help/connorb/32/91372_2.png) [@connorb](https://www.epiusers.help/u/connorb)\
**Post date:** [February 26, 2026, 5:59pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/19 "2026-02-26T17:59:48Z")

</div>

![Happy If You Say So GIF](https://media2.giphy.com/media/v1.Y2lkPWU5MGVkYmEzcWtxenlyOWd1OHhscjBkd2F4aXkwZHd1anJxYjQya3F4YTN2dWI1OSZlcD12MV9naWZzX3NlYXJjaCZjdD1n/xSM46ernAUN3y/giphy.webp)

---

<div class="post-metadata">

**Author:** ![GabeFranco](https://www.epiusers.help/user_avatar/www.epiusers.help/gabefranco/32/80642_2.png) [@GabeFranco](https://www.epiusers.help/u/GabeFranco)\
**Post date:** [February 26, 2026, 6:17pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/20 "2026-02-26T18:17:41Z")

</div>

Classes / Serialized Json Objects in particular aren’t documented in REST Help, which I think is the main missing piece from it.

I rely on Decompiled code for the missing bits…

---

<div class="post-metadata">

**Author:** ![utaylor](https://www.epiusers.help/user_avatar/www.epiusers.help/utaylor/32/64664_2.png) [@utaylor](https://www.epiusers.help/u/utaylor)\
**Post date:** [February 26, 2026, 8:00pm UTC](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953/21 "2026-02-26T20:00:03Z")

</div>

> [@GabeFranco](#):
>
> Classes / Serialized Json Objects in particular aren’t documented in REST Help, which I think is the main missing piece from it.
> 
> I rely on Decompiled code for the missing bits

Maybe we could get an Epicor idea accepted to add this stuff

[Next page](https://www.epiusers.help/t/unable-to-add-new-rows-to-ud09-with-rest-erp-or-rest-api-help/132953.md?page=2)
