我们需要为实体添加服务信息,如officeId。
或者我们如何使用IntuitAnyType进行设置并获取我们的服务信息。我试图将xmlElement添加到IntuitAnyType中,然后创建账单,但当我尝试获取此账单时,IntuitAnyType字段(BillEx(为空。此外,我还尝试添加NumberTypeCustomFieldDefinition,结果引发了Validation Exception。详细信息:操作找不到相对路径的资源:/v3/company/4620816365019493550/numbertypecustomfield完整路径的定义:https://c50.sandbox.qbo.intuit.com/qbo50/v3/company/xxxxxxxxxxx/numbertypecustomfielddefinition?minorversion=29&不支持requestid=a52a148d0f6f4c3ab366f55ca7440525。。
var dataService = new DataService(_serviceContext);
var officeId= new QBO.NumberTypeCustomFieldDefinition()
{
DefaultValue = 0,
DefaultValueSpecified = true,
Name = "OfficeId",
Hidden = true,
EntityType = QBO.objectNameEnumType.Bill.ToString(),
Required = false
};
var createdCaseIdField = dataService.Add(caseId);
有可能吗?
有没有一种方法可以使用api 为账单创建和更新隐藏的自定义字段
否。自定义字段只能通过UI创建,并且在UI中可见。
这一切都记录在这里:
- https://developer.intuit.com/app/developer/qbo/docs/develop/tutorials/create-custom-fields#enable-自定义字段