Solved

Can I retrieve a localized value through GI's ODATA interface?

  • 27 June 2023
  • 2 replies
  • 58 views

One of our clients noticed that our GI-backed functionality (retrieving PMProject.Description) was always returning the values for English, whereas they also had a French localization set up.

They would have preferred to see the results in French. 

Is there a way to retrieve localized values through the OData interface of a GI, or is it something that is not supported at all?

 

icon

Best answer by stephenbologna39 14 December 2023, 17:11

View original

2 replies

Userlevel 3
Badge +1

What happens if you create the generic inquiry in the french localization and then turn on odata.  Does it not export in french description etc.  If you have tried that, maybe you need to try to log onto the french localization remotely with the odata.  Would there not be a option to set that.  I haven’t played around with this much lately.    Matt

Userlevel 4
Badge

Hi @pkabir63 

Support for this was added in 2023 R1 of Acumatica.  When composing your OData URL, you can add the following parameter to request localized fields be returned in French:
?locale=fr-CA

 

For example, if your standard OData request URL is:

https://localhost/Acu23R1/OData/Company/InquiryTitle

 

The following would return localized fields in French:

https://localhost/Acu23R1/OData/Company/InquiryTitle?locale=fr-CA

 

As an alternative, you could instead add the following header to your OData request to achieve the same result:

Accept-Language: fr-CA

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