简体   繁体   English

通过 REST API 在 Acumatica 中添加第二个 CustomerLocation

[英]Adding a second CustomerLocation in Acumatica via REST API

For many of our customers we have additional addresses that they used over the years.对于我们的许多客户,我们有他们多年来使用的其他地址。 We would like to add them as additional CustomerLocations.我们想将它们添加为额外的 CustomerLocations。 I don't seem to be able to this however and nothing turns up in google search.但是,我似乎无法做到这一点,并且谷歌搜索中没有任何内容。 I'm using Postman and do a PUT on the CustomerLocation endpoint.我正在使用 Postman 并在 CustomerLocation 端点上执行 PUT。 Here is the request body这是请求正文

{
        "CustomerID": {"value": "<CUSTOMER_ID"},
        "LocationID": {"value": "SECONDARY"}, 
        "LocationName": {"value": "Secondary"},
        "AddressOverride": {"value": "True"},

        "Contact": {
                "Address": <address data follows>

The exception says "Object Reference not set to an instance of an object."异常显示“对象引用未设置为 object 的实例。” Has anybody done this before?以前有人做过吗?

Try using "Customer" instead of "CustomerID", thats the name of the field.尝试使用“Customer”而不是“CustomerID”,这就是该字段的名称。 The inconsistency is maddening, I know我知道这种不一致令人抓狂

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM