Solved

Create PO with API

  • 22 April 2024
  • 8 replies
  • 82 views

Userlevel 2
Badge

Hello all, What ID do I put in the Owner Field of a PO. When I use the Employee id it does not work.

 

"error": "'Owner' cannot be empty."

 

 

 "Owner": {

        "value": "4264",

        "error": "Owner 'E00003    ' cannot be found in the system."

    },

icon

Best answer by ruchikasharma23 23 April 2024, 18:05

View original

8 replies

Userlevel 5
Badge +2

@keithschm 
1. Are you able to create PO with this employee from the UI? If not, here’s what we need to follow.
 

  1. However, if it works from the UI and not only from the API, then I would create a PO from UI and perform a GET request for it and observe what is returned in Owner field.
    For e.g. GET : {sitename}/Default/22.200.001/PurchaseOrder/Normal/POXXXXX
Userlevel 2
Badge

Thank you that is all setup. I think there is an issue with the test instance. I get the same error when manually entering, but when I press save it saves the owner.  Yet it know who  E00003 is, 

 

Userlevel 5
Badge +2

@keithschm 
Did you get a chance to check what is returned for the PO which you created from UI with this owner.
 

 

Userlevel 2
Badge

yes, it is the number I am passing in the put:

 

 "Owner": {

            "value": "4264"

        },

 

 

Userlevel 2
Badge

Thank you for you help. It is a strange Error

Userlevel 5
Badge +2

@keithschm 
I tested by creating a PO and it was created with correct Owner value, screenshot below:


This field is expecting the “ContactID” 
 

UI:

 

Userlevel 2
Badge

Sorry for the late reply. I see it is using the contact id. I am able to create now.  Thank you very much.

 

Now to figure out how to set the approver….

Userlevel 2
Badge

There is a approver Tab on the PO. I do not see it in the API, and if I try to extend the API I am not sure which object to add as I do not see it. Is this possible? I also do not see the approver when I get the PO through the API either. Our PO’s are approved in a 3rd party system so they have a owner and an approver already.

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved