Sage 300 (accpac) SDATA Create Customer

霸气de小男生 提交于 2019-12-10 23:34:01

问题


I'm trying to use SDATA to create a customer but can't seem to find the proper endpoint. I've scoured the schema and have only found wkshpcustomer, but nobody seems to know what that object is.

I can, however, create an order without issue:

[POST] http://{domain}/SDataServlet/sdata/sageERP/accpac/{company}/oeorders/
<sdata:payload>
    <oeorder xmlns="schemas.sage.com/sageERP">
        <TERMS>CASH</TERMS>
        <CUSTOMER></CUSTOMER>
    </oeorder>
</sdata:payload>

When I do the same based on the following blog post (https://smist08.wordpress.com/2011/08/06/fun-with-sdata/) for creating a customer, I get the following:

<?xml version="1.0" encoding="UTF-8"?>
    <sdata:diagnoses xmlns:sdata="schemas.sage.com/.../1">
        <sdata:diagnosis>
            <sdata:severity>error</sdata:severity>
            <sdata:sdataCode>ResourceKindNotFound</sdata:sdataCode>
            <sdata:message>Resource kind: CUSTOMER cannot be found in the classMap.</sdata:message>
        </sdata:diagnosis>
    </sdata:diagnoses>

So, how do I create a customer using SDATA?

来源:https://stackoverflow.com/questions/34419127/sage-300-accpac-sdata-create-customer

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!