I need to insert cases in salesforce from an external site. I'm using the Force.com_Toolkit_for_PHP:
I can insert a new case simply using the web to case form. Now I need to insert a CaseComment related to a case.
$oSforceConnection = new SforceEnterpriseClient(); $oSforceConnection->login('username', 'pwd_with_security_code'); $oComment = new stdClass(); $oComment->CommentBody='test comment from my external site'; $oComment->ParentId='case_id'; // the comment will be linked with this case $oSforceConnection->create(array($oComment), 'CaseComment');
this works nicely, but I would like to link the comment to a contact. Have you some suggestions? I've noticed that it's not possible to create custom fields in the CaseComment object. So I cannot create a lookup relationship with the contact module.
Moreover inside the case detail view, I would like to see the contact that is linked to the comment inside the comment's related list. Is this possible with visualforce?