Adding UD01 as a child table to Sale Order

In our classic customization we have added UD01 as a child table to a Sale Order in our customization to act as a change log. We are using Key1 as the Sales Order Number and Key5 as the line number of each change log entry. I am trying to recreate this in Kinetic 2025.2 and have not had much luck. Is there any examples out there showing this. Also, I tried using the REST API help to retrieve some existing records. I want to fill a grid with all lines for an order. Also, I want to add, edit and delete line.

  • GetByID fails, I entered a sales order number under Key1 and get a 500 error. If I additionally adding a line number for Key5, it still fails.
  • GetList and GetRows will dump the whole UD01 table if I put in no where clause. If I enter a where clause, it fails again.

You set that to return 10 records a page, and to go to page 10.

Is there default values I can use just to return all records on 1 page?

You got Key2, 3, and 4 still you need to send “” or blank.

GetByID fails under all these conditions

  • key1 =‘251691’ or 251691
  • Key2, key3 and key4 - Send empty value
  • key5 = 1, ‘1’, or send empty value

Show me the same record via a BAQ.

Go try the post method.

Thanks for the help. I have left the office for the weekend. I will respond on Tuesday when I return.

I’m still learning so forgive me the potentially silly question… but, if you’re using UD01 as a child table Sales Orders… you’re still within the internal scope of Epicor, right? I’m wondering why you’re using the API v2 GetByID method (requiring an API Key) vs the API v1 method.

This doesn’t sound like it is for external access, but I’m still wrapping my head around all of this.

Just curious if you test against the API v1 method… where you only need to pass the Key values, do you get a successful return?

Same problem using the post method.

Show us a BAQ of the same data you are trying to query.

No change using API v1

0, 0

select  
	[UD01].[Company] as [UD01_Company], 
	[UD01].[Key1] as [UD01_Key1], 
	[UD01].[Key5] as [UD01_Key5], 
	[UD01].[Character01] as [UD01_Character01], 
	[UD01].[Character10] as [UD01_Character10], 
	[UD01].[Number01] as [UD01_Number01] 

from Ice.UD01 as [UD01]

I just ran everything again, just like in the original screenshot, except substituting 0,0 page sizes and it worked. I am so confused.

Because I already told you, you said give me 10 records a page, and give me page 10…

Page 10 didn’t exist lol.

I thought I tried with page 1, but maybe not. I will get back on this later this week.