python - NetSuite 错误 : CustomFieldRef is an abstract type and cannot be instantiated

标签 python wsdl netsuite

我正在研究 NetSuite WSDL。我被过去两天的这个错误困住了。我在互联网上搜索过,但找不到解决方案。

我尝试添加一个 custom field在 NetSuite 中使用 Python,但出现错误

zeep.exceptions.Fault: org.xml.sax.SAXException: {urn:core_2017_1.platform.webservices.netsuite.com}CustomFieldRef is an abstract type and cannot be instantiated

我们将不胜感激任何形式的帮助。提前致谢。

最佳答案

我使用 SelectCustomFieldRef 解决了这个问题而不是 CustomFieldRef。即

new_record['companyName']= 'test_clinic1'
new_record['firstName']= 'test_clinic_first_name1'
new_record['altName']= 'test_clinic1'
new_record['lastName']='test_last__clinic_name2'
record = RecordRef(internalId=1, type='subsidiary')
new_record['subsidiary'] = record

customField= SelectCustomFieldRef()
customField.internalId='285'
customField.scriptId='custentity_profile_type'
customField.value={
                'name': 'Clinic',
                'internalId': '2',
                'externalId': None,
                'typeId': '31'
            }

new_record['customFieldList']=CustomFieldList(customField)

关于python - NetSuite 错误 : CustomFieldRef is an abstract type and cannot be instantiated,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46424010/

相关文章:

c# - 如何从 C# 中的 wsdl SOAP 请求信封

python - 如何将图像应用到小部件背景(叠加)

python - 访问正在更新的变量

php - 函数执行期间 SOAP 客户端超时

java - 使用 Java 从 NetSuite 导出报告

html - 如果有 'Item Type' (Netsuite)

正则表达式捕获组帮助netsuite/oracle

python - 如何在字典中获取多个最大键值?

python - NetworkX 在有向图中查找特定节点的 root_node

java - 从 WSDL 文件生成 Web 服务