AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • In-Person Gatherings
    • Power BI Workshop
    • Podcast
    • Rolodex
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Generic I...
Generic Inquiry via...
 
Notifications
Clear all

Questions Generic Inquiry via REST API

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by Richard Whight 4 years ago
6 Posts
5 Users
2 Reactions
8,233 Views
RSS
Posts: 6
 Mike Ott
Topic starter
October 1, 2018 12:42 pm
(@mike-ott)
Member
Joined: 8 years ago

Don't know is this should be here or elsewhere as I don't see an area for API topics:

I am accessing a Generic Inquiry via the REST API and It looks like everything should be working (the Inquiry works fine) and I think I have the endpoint set up correctly with the filter field on the base entity. I have a result sub entity that has the result values as well.

When I run the actual call in Postman I am getting essentially a new Record vs the record of the CustomerID I am filtering by:

{
"id": "07591f92-a4fa-4c94-9f9d-128fd549afaf",
"rowNumber": 1,
"note": null,
"CustomerID": {
"value": "<NEW>"
},
"DefaultLocationResults": [],
"custom": {},
"files": []
}

Anyone run into anything like this or have a better understanding of this than I?

This is limited information, I can provide more if needed, I was just wondering if someone might know offhand. I've had this working before in another instance but for some reason things seem off on this one.


5 Replies
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
October 8, 2018 12:33 pm
(@timrodman)
Famed Member
Joined: 11 years ago

Are you trying to access the Generic Inquiry definition or the result set?

If the result set, any reason why you're using the API instead of OData? I've never thought about doing it through the API.


Reply
Jerwin Alimuin
 Jerwin Alimuin
(@jalimuin)
Joined: 8 years ago

Member
Posts: 17
December 20, 2019 4:57 am
Reply toTim RodmanTim Rodman

@timrodman

I think I encounter same problem with him.  We built an in-house web app that need to extract data from GI via Rest API, but i cannot apply Filter, it returns all the result of GI. JSON return is our only option.


Reply
Juriy Zaletsky
Posts: 17
 Juriy Zaletsky
November 16, 2018 10:37 am
(@docotor)
Eminent Member
Joined: 6 years ago

Mike, congrats you've done everything correctly and you see what you should see  😀  .  By default Acumatica API behaves exactly as opening screen manually. If you navigate to any screen in Acumatica, it will open to you screen with <New> as reference number. But you'll need to work a bit more in order to get specific customer by id. 


Reply
Tim Rodman reacted
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
January 13, 2020 10:53 pm
(@timrodman)
Famed Member
Joined: 11 years ago

@jerwin-alimuin, are you using a REST API or connecting to the Generic Inquiry over OData?

You can get OData to return JSON by doing this:
https://www.augforums.com/forums/acumatica-odata-with-microsoft-excel-and-power-bi/using-json-with-odata-in-acumatica/

You can also apply server-side OData filters in the URL. Here are some examples:
https://www.augforums.com/forums/acumatica-odata-with-microsoft-excel-and-power-bi/applying-filters-in-odata/


Reply
Richard Whight
Posts: 17
 Richard Whight
February 23, 2022 11:22 pm
(@richard-whight)
Eminent Member
Joined: 5 years ago

I think he was doing this

https://www.acumatica.com/blog/contract-based-apis-in-generic-inquiries/


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,532 Topics
  • 11 K Posts
  • 11 Online
  • 2,420 Members
Our newest member: Katerina Pawlowski
Latest Post: Can't export GI's to excel that contain the FATrans DAC after upgrade to 2025 R1 in less than 25 min
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2026 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×