Skip to main content

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?

 

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


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