Skip to main content
Solved

Cannot find GI in my endpoints

  • November 29, 2023
  • 4 replies
  • 273 views

I am new to Acumatica so please forgive the simplicity of my question. I am trying to create a API request using a GI, but I cannot for the life of me find the GI inside the WS Endpoints. I have followed the process laid out in the training video for REST API’s, and unless I misunderstood using this GI is the proper way to do so. Accordingly I have verified that the ‘make visible on the UI’ and the ‘expose via Odata’ checkboxes are checked in the GI. The GI also seems to be working properly as when I view the inquiry I am getting the expected response. From my understanding when the expose via Odata is checked this creates a WS endpoint that is then used in the endpoint API. However when navigate the endpoints I cannot find this generic inquiry anywhere. I am testing all of this inside our sandbox instance, that wouldn’t be the issue would it? I assume not because I have made successful API calls of other endpoints to test inside of the sandbox instance. Am I missing something? Any direction would be greatly appreciated! 

 

 

Best answer by RohitRattan88

@ccarver @jinin and @dcomerford are right. if you want your GI in an Endpoint, you will need to extend/create endpoint and add your GI manually.

However, if you just retrieving the data using oData, you dont need to do that. 

Ref:

https://help.acumatica.com/(W(321))/Help?ScreenId=ShowWiki&pageid=5d97a93d-45e0-466e-ba5e-77e1ccf96643

https://openuni.acumatica.com/courses/integration/i300-web-services-data-retrieval-with-odata/

 

Previously you would need to expose GI with parameters to endpoint to utilize filtering but in 23R2 this could be done via Odata as well:

https://help.acumatica.com/(W(322))/Help?ScreenId=ShowWiki&pageid=1f39f6c1-8f86-4c9f-b722-4a0d57a37342

 

Good luck with your development

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

4 replies

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • 701 replies
  • November 29, 2023

Hi @ccarver ,

You should create a custom endpoint with the GI.
Please refer to the link below. I've attached a sample package for creating a custom endpoint with GI. Publish the package and review.

How do I retrieve a list of Attributes for a specific Employee Class using the REST API | Community (acumatica.com)


dcomerford
Captain II
Forum|alt.badge.img+15
  • Captain II
  • 643 replies
  • November 29, 2023

Agree with @jinin you need to either extend the system webservice endpoint or create a new one and then Insert and create the entity for the GI

 


  • Author
  • Freshman I
  • 4 replies
  • November 29, 2023

Hello @jinin and @dcomerford 

Thank you for your direction, I did as you instructed and I am able to run, inside of postman, however I am getting an error. When I run it, it seems that it is telling me the REST v4 contract I am run does not implement required SOAP interface. Looks as though I have to interact with this GI using SOAP API not REST, am I understanding this properly? Is their something that can be changed to use as a REST. I may need to just build a new GI, this GI was already built inside our system. 

 

 


RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+4
  • Acumatica Moderator
  • 253 replies
  • Answer
  • November 29, 2023

@ccarver @jinin and @dcomerford are right. if you want your GI in an Endpoint, you will need to extend/create endpoint and add your GI manually.

However, if you just retrieving the data using oData, you dont need to do that. 

Ref:

https://help.acumatica.com/(W(321))/Help?ScreenId=ShowWiki&pageid=5d97a93d-45e0-466e-ba5e-77e1ccf96643

https://openuni.acumatica.com/courses/integration/i300-web-services-data-retrieval-with-odata/

 

Previously you would need to expose GI with parameters to endpoint to utilize filtering but in 23R2 this could be done via Odata as well:

https://help.acumatica.com/(W(322))/Help?ScreenId=ShowWiki&pageid=1f39f6c1-8f86-4c9f-b722-4a0d57a37342

 

Good luck with your development


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