根据QBSDK v12和v13 OSR文档,SDK会返回与客户关联的每个联系人的联系详细信息(电话,电子邮件等)。换句话说,联系人中的标签。但是,当我查询有多个联系人的客户时,我得到的只有:
<Contact>Thing One</Contact> (for the contact flagged as primary)
<AltContact>Thing Two</AltContact> (for the contact flagged as secondary)
<AdditionalContactRef>
<ContactName>Main Phone</ContactName> (the main phone # for CUSTOMER, not contact)
<ContactValue>425-555-1212</ContactValue>
</AdditionalContactRef>
etc...
为每个联系人设置的电话号码和电子邮件不包含在响应XML中。这是QB Premier 2014和QBSDK v13。我错过了什么,或者QB还没有返回SDK所支持的联系方式?
答案 0 :(得分:0)
如果我正确理解了这个问题,那么您正在寻找ContactsRet
元素。
您应该可以使用ContactsRet
元素请求IncludeRetElement
元素。
来自OSR:
<CustomerRet>
<ContactsRet> <!-- optional, may repeat -->
<ListID> IDTYPE </ListID> <!-- required -->
<TimeCreated> DATETIMETYPE </TimeCreated> <!-- required -->
<TimeModified> DATETIMETYPE </TimeModified> <!-- required -->
<EditSequence> STRTYPE </EditSequence> <!-- required -->
<Contact> STRTYPE </Contact> <!-- optional -->
<Salutation> STRTYPE </Salutation> <!-- optional -->
<FirstName> STRTYPE </FirstName> <!-- required -->
<MiddleName> STRTYPE </MiddleName> <!-- optional -->
<LastName> STRTYPE </LastName> <!-- optional -->
<JobTitle> STRTYPE </JobTitle> <!-- optional -->
<AdditionalContactRef> <!-- must occur 0 - 5 times -->
<ContactName>STRTYPE</ContactName> <!-- required -->
<ContactValue>STRTYPE</ContactValue> <!-- required -->
</AdditionalContactRef>
</ContactsRet>
</CustomerRet>