Skip to main content
Solved

Creating Purchase order through API


Driss
Jr Varsity III
Forum|alt.badge.img
  • Jr Varsity III
  • 29 replies

Hi team

Im creating PO through API in old tenenat i was creating only skeleton of PO with no line items and it still defaulting to on hold status but now when we changed the to new tenant the PO will default to “Closed” how can i change that 


here is the PO 

 

  • Instaed of defaulting to Closed if i don’t have items mapped i want it to be defaulted to “Open” OR “On-Hold”

     

     

 

 

Thanks

Best answer by Driss

@frederickodendaal77 Hi- No luck about that what i did i created a dummy item with that Purchase Order just to prevent closed status and once i add all line to it i deleted that dummy item as i give line number of “989” 

Thank you so much for your help

View original
Did this topic help you find an answer to your question?

11 replies

Forum|alt.badge.img
  • Varsity I
  • 36 replies
  • February 8, 2024

Does the same thing happen when using the GUI?


Forum|alt.badge.img

You could just force the PO on hold in your API call when you create it:

 

{

"Type":{"value":"Normal"},

"ReferenceNbr":{"value":"1"},

"Hold":{"value":"True"},

"VendorID":{"value":"AAVENDOR"},

"Description":{"value":"TestPO"},

"Date":{"value":"2023/03/27"}

 

}

 


Driss
Jr Varsity III
Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 29 replies
  • February 8, 2024

@keithschm I created manuanly and same thing it defaulting to “Closed”


Driss
Jr Varsity III
Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 29 replies
  • February 8, 2024

@frederickodendaal77 Yes i just tested it and it still creating PO with closed status


Forum|alt.badge.img
Driss wrote:

@frederickodendaal77 Yes i just tested it and it still creating PO with closed status

What version are you testing on?


Driss
Jr Varsity III
Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 29 replies
  • February 8, 2024

@frederickodendaal77 This right?
 

 


Forum|alt.badge.img
Driss wrote:

@frederickodendaal77 This right?
 

 

I’m on 23.112 and it is working. What version of the endpoint are you using?
http://localhost/2023R1/entity/Default/22.200.001/PurchaseOrder


Driss
Jr Varsity III
Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 29 replies
  • February 8, 2024

@frederickodendaal77 I see , same endpoint version can you try and create PO with no item in GUI and see if it will default to “Open” Or “onHold”

Thank you


Forum|alt.badge.img

@Driss When I create it manually with no item in the GUI then it still saves on hold. Do you have any customization on that screen?


Driss
Jr Varsity III
Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 29 replies
  • February 8, 2024

@frederickodendaal77 Thank you for the confirmation, so i guess that will be a version thing i will check and let you know thank you so much


Driss
Jr Varsity III
Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 29 replies
  • Answer
  • February 10, 2024

@frederickodendaal77 Hi- No luck about that what i did i created a dummy item with that Purchase Order just to prevent closed status and once i add all line to it i deleted that dummy item as i give line number of “989” 

Thank you so much for your help


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings