Hi,
I am writing a custom frontend for our customer support Case system. I am able to create Cases, linked to the right Account. But i would like to add a note as if it was created by the Account associated with the Case. Right now, if i add any notes via the API, they are always created by the API user:
In the above code example, setting createdById does not work. I am trying to avoid using different api keys for every Account, as this adds a lot of complexity.
Any way to achieve this. I couldn't find a solution in the API docs.
Thanks,
Tho
I am writing a custom frontend for our customer support Case system. I am able to create Cases, linked to the right Account. But i would like to add a note as if it was created by the Account associated with the Case. Right now, if i add any notes via the API, they are always created by the API user:
Code:
// This creates a note, but the creator is the API user, not the account... $newnote = $this->espo_request("POST", "Note", [ "post" => $message, "attachmentsIds" => [], "type" => "Post", "isInternal" => false, "parentId" => $newcase["id"], "parentType" => "Case", "createdById" => $foundsystem["id"] // this does not work. ]);
Any way to achieve this. I couldn't find a solution in the API docs.
Thanks,
Tho
Comment