How to create a Task associated with an Account by using PHP SDK?
i would like to ask some problem like this.
when i want to create a task associated with Account infomation. so i write these codes.
- $rest = \ZCRMRestClient::getInstance();
- $record = $rest->getRecordInstance("Tasks", null);
- $record->setFieldValue("Subject", "example title");
- //...
- $responseIns=$record->create();
- $createdrecord = $responseIns->getData();
- $account = \ZCRMJunctionRecord::getInstance('Accounts', $data['account']);
- $createdrecord->addRelation($account);
then. i catch a error message " the relation name given seems to be invalid"
why ?
ZOHO CRM REST API v2.0 using PHP SDK
ZOHO lisence is professional