cancel
Showing results for 
Search instead for 
Did you mean: 

B1 Service Layer POST UDO

former_member260921
Participant
0 Kudos

Hi,

I have created a UDO ("@JC1_LOG") and am trying to insert a record using

POST .../@JC1_LOG ........

OR

POST .../JC1_LOG ........

In both cases I get the error: code: -1002 ......"Service Not Found"....

Note: the service layer has been restarted since the UDO was added.

Note - The documentation says: "Once an UDO is created, you can treat it as an ordinary entity. The URL for UDO CRUD and Query operation are
the same as the internal SAP Business One entities."

How do I insert a UDO record using the service layer?

Thanks,

Mel






Accepted Solutions (1)

Accepted Solutions (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Mel Dodd,

Below request is working fine for me:

POST /b1s/v1/UDO_MASTER

{ "Code": "1", "U_TEST": "My Test" }

Where UDO_MASTER is the UDO Code. Make sure it is case-sensitive too.

Kind regards,

ANKIT CHAUHAN

SAP SME Support

former_member260921
Participant
0 Kudos

Hi Ankit,

Thanks. That worked. I made the mistake of using the table name and not the UDO object name.

Regards,

Mel

Answers (0)