Skip to main content
Solved

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


pkabir63
Freshman II

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?

 

Best answer by stephenbologna39

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

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

2 replies

Forum|alt.badge.img+1
  • Varsity I
  • 55 replies
  • December 14, 2023

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


Forum|alt.badge.img+1

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


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