尝试通过REST获取默认客户/发货联系人数据时发生BQL委托错误

时间:2018-08-16 18:16:59

标签: rest acumatica

我试图使用REST从Acumatica的默认终结点获取信息,当我尝试获取Customer / ShippingContact数据时,出现以下错误:

Optimization cannot be performed.The following fields cause the error:
ShippingContact.ContactID: View DefLocationContact has BQL delegate
ShippingContact.DisplayName: View DefLocationContact has BQL delegate
ShippingContact.Email: View DefLocationContact has BQL delegate
ShippingContact.Fax: View DefLocationContact has BQL delegate
ShippingContact.FirstName: View DefLocationContact has BQL delegate
ShippingContact.JobTitle: View DefLocationContact has BQL delegate
ShippingContact.LastName: View DefLocationContact has BQL delegate
ShippingContact.MiddleName: View DefLocationContact has BQL delegate
ShippingContact.Phone1: View DefLocationContact has BQL delegate
ShippingContact.Phone1Type: View DefLocationContact has BQL delegate
ShippingContact.Phone2: View DefLocationContact has BQL delegate
ShippingContact.Phone2Type: View DefLocationContact has BQL delegate
ShippingContact.Title: View DefLocationContact has BQL delegate
ShippingContact.WebSite: View DefLocationContact has BQL delegate

正在使用以下URL进行GET请求:

http://192.168.1.78/a000/entity/Default/17.200.001/Customer?$expand=ShippingContact

是否有通过REST使类似的东西起作用的特定技巧?

1 个答案:

答案 0 :(得分:0)

此问题已在Acumatica ERP版本2018r1 Update 11中修复。作为临时解决方法,您可以构建通用查询来读取此数据。 您可能使用的另一种方法是通过指定您想要此数据的客户来检索客户数据。 像这样:

http://host/site/entity/Default/17.200.001/Customer/ABARTENDE?$expand=ShippingContact