I´m trying to list my Debtors - which I can do without problems;
- Code: Select all
// Fetch list of all debtors.
$debtorHandles = $client->Debtor_GetAll()->Debtor_GetAllResult->DebtorHandle;
$debtorDataObjects =$client->Debtor_GetDataArray(array('entityHandles' => $debtorHandles))->Debtor_GetDataArrayResult->DebtorData;
foreach ($debtorDataObjects as $i => $debtorData) {
$ekundeNr = $debtorData->Number;
$ekundeNavn = utf8_decode($debtorData->Name);
$ekundeAdresse = utf8_decode($debtorData->Address);
$ekundePost = utf8_decode($debtorData->PostalCode);
$ekundeBy = utf8_decode($debtorData->City);
$ekundeEan = $debtorData->Ean;
$ekundeAtt = $debtorData->AttentionHandle->Id;
}
Then I get the ID (eg. 268) from then AttentionHande ($ekundeAtt).
Now I would like to know the NAME of Attention with ID (eg. 268).
Help
----
Also, I would like to get the NAMES of all the Attentions related to a customer number...
I have no idea how to...
BR Thauser


