QBO で、親 -> 子の関係にあるアカウントを具体的に探しています。ただし、Bill With Parent が true の場合、"Resale Number" には値が入りません。これは、親の QBO ID であると思いますか?
この情報を取得する方法を明確にする助けがあれば役立ちます。
C# では、次のことを行って、使用可能なアカウントをループしています。
var qboCustomer = new Intuit.Ipp.Data.Qbo.Customer();
var qboCustomers = commonService.FindAll(qboCustomer, page, custKnt).ToList();
custKnt = qboCustomers.Count;
foreach (var c in qboCustomers)
{
Intuit.Ipp.Data.Qbo.BooleanTypeCustomField parentBilling = (Intuit.Ipp.Data.Qbo.BooleanTypeCustomField)c.CustomField.Where(a => a.DefinitionId == "Bill With Parent").FirstOrDefault();
if (parentBilling != null)
{
if (parentBilling.Value == true)
{
Intuit.Ipp.Data.Qbo.StringTypeCustomField resaleNum = (Intuit.Ipp.Data.Qbo.StringTypeCustomField)c.CustomField.Where(a => a.DefinitionId == "Resale Number").FirstOrDefault();
if (resaleNum != null)
{
//do some stuff, however, resaleNum is ALWAYS null...
}
}
}