Problem adding relation using PHP SDK
Hi,
i have 2 related list inside my Leads :
Products' related list (standard module)
Developer_Projects' related list (custom module)
i'm able to add products to leads using this piece of code (it's a working sample) :
- $parentRecord=ZCRMRecord::getInstance("Leads","3225419000002017247");
- $junctionRecord=ZCRMJunctionRecord::getInstance("Products","3225419000002033149");
- $responseIns=$parentRecord->addRelation($junctionRecord);
but i cannot add developer_projects to leads using this piece of code (i got an exception "the relation name given seems to be invalid") :
- $parentRecord=ZCRMRecord::getInstance("Leads","3225419000002017247");
- $junctionRecord=ZCRMJunctionRecord::getInstance("Developer_Projects","3225419000002018241");
- $responseIns=$parentRecord->addRelation($junctionRecord);
Can somebody at zoho support give me a working code for this ?
Thank you in advance...