November Happy Hour will be moved to Thursday December 5th.

LangugeRouting with Client.Get()

Vote:
 

Hi!

I'm using Find 13.0.5 and trying out the new LanguageRouting. I have a class with a LanguageRouting property that has has the LanguageRoutingAttribute. When I index such an entity without setting the LanguageRouting property, I can do Client.Get(id) and get a response back. But when I add the LanguageRouting and then call Client.Get(id) I get nothing back. There's an overload in Client.Get() that takes language routing as the second argument, but when looking at the implementation that argument is ignored. And passing the argument still returns null.

Is this a bug or am I missing something?

#202366
Mar 25, 2019 9:14
Vote:
 

This is almost certainly a bug. Client.Get() calls Client.GetWithMeta() internally, and GetWithMeta() takes a languageRouting argument but Client.Get() forgets to pass it on. Calling Client.GetWithMeta() instead gives me the correct entity back.

#202367
Mar 25, 2019 9:25
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.