我正在研究 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/