0
特定のケース(事例)の注釈(注釈)を取得しようとしています。 は、ここに私のコードです:ALEXACRMを使用している場合のすべてのメモ(注釈)を取得
$incidentid= '49243f9c-548e-e711-80c6-000c2983dc59';
$clientOptions = include('config.php');
$clientSettings = new Settings($clientOptions);
$client = new Client($clientSettings);
$metadata = MetadataCollection::instance($client);
/* $incident = $client->entity('incident', $contactKeyvv); */
$contactKey2 = new \AlexaCRM\CRMToolkit\Entity\EntityReference("incident");
$contactKey2->__set("ID",$incidentid);
$notes = $client->entity('annotation', $contactKey2);
$isRetrievedByEmail = false;
echo "<pre>";
print_r($notes);
exit;
しかし、私はALEXACRMを使用して、これらの詳細を取得することはできませんよ。私は間違って何をしていますか?
また、特定の連絡先のケース(インシデント)を取得するのに似たものを試しました。運がない。ここでは、コードです:
$contactKey = new \AlexaCRM\CRMToolkit\KeyAttributes();
$contactKey->add('customerid','5e61e646-8c8c-e711-80c6-000c2983dc59');
$contactKey->add('customeridtype',2);
$contact_cases = $client->entity('incident', $contactKey);
echo "<pre>";
print_r($contact_cases);exit;
これを試したことのある人は、私が
どのバージョンのcrm?再タグ付けが必要です。また、「できない」と「運がない」と定義します。結果はどうですか?エラー ?ハードドライブのフォーマット? – Alex