Skip to main content
Solved

How do you access Purchasing Details via API?

  • 30 January 2024
  • 2 replies
  • 102 views

I’m trying to view the details of a PO that’s linked to a SO line. My API call, {{api_base_uri}}/SalesOrder/SO|SO00000051?$expand=Details, works just fine. However, when I try {{api_base_uri}}/SalesOrder/SO|SO00000051?$expand=Details,Details/PurchasingDetails, I get an error stating “the given key was not present in the dictionary”. 

 

I may have been misinformed on this being the correct key, but there’s nothing online covering this topic. 

Can I please get some help? 

 

Context: I’m trying to create a collection run in Postman that creates an SO + PO, then PO links their lines. I’m on 2023 R1. 

Best answer by dcomerford

That error is telling you thst it cannot find the Object PurchasingDetails which version of the End Point are you using as the Default 22.200.001 has this in it 

The older version dont have this object

 

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

2 replies

dcomerford
Captain I
Forum|alt.badge.img+15
  • Captain I
  • 579 replies
  • Answer
  • January 30, 2024

That error is telling you thst it cannot find the Object PurchasingDetails which version of the End Point are you using as the Default 22.200.001 has this in it 

The older version dont have this object

 


  • Author
  • Freshman I
  • 1 reply
  • January 30, 2024

@dcomerford Thanks for the reply. That was it. My api_base_uri was 17.200.001. Changing it to 22.200.001 fixed the issue. 

 


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